classes/phing/Phing.php
public static function explodeIncludePath($path = null)
    {
        if (null === $path) {
            $path = get_include_path();
        }

        if (PATH_SEPARATOR == ':') {
            // On *nix systems, include_paths which include paths with a stream
            // schema cannot be safely explode'd, so we have to be a bit more
            // intelligent in the approach.
            $paths = preg_split('#:(?!//)#', $path);
        } else {
            $paths = explode(PATH_SEPARATOR, $path);
        }

        return $paths;
    }
public static function explodeIncludePath($path = null)
    {
        if (null === $path) {
            $path = get_include_path();
        }

        if (PATH_SEPARATOR == ':') {
            // On *nix systems, include_paths which include paths with a stream
            // schema cannot be safely explode'd, so we have to be a bit more
            // intelligent in the approach.
            $paths = preg_split('#:(?!//)#', $path);
        } else {
            $paths = explode(PATH_SEPARATOR, $path);
        }

        return $paths;
    }
public static function explodeIncludePath ( $ path = null ) { if ( null === $ path ) { $ path = get_include_path ( ) ; } if ( PATH_SEPARATOR == ':' ) { // On *nix systems, include_paths which include paths with a stream // schema cannot be safely explode'd, so we have to be a bit more // intelligent in the approach. $ paths = preg_split ( '#:(?!//)#' , $ path ) ; } else { $ paths = explode ( PATH_SEPARATOR , $ path ) ; } return $ paths ; }
Explode an include path into an array

If no path provided, uses current include_path. Works around issues that
occur when the path includes stream schemas.

Pulled from Zend_Loader::explodeIncludePath() in ZF1.

@copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
@license   http://framework.zend.com/license/new-bsd New BSD License
@param     string|null $path
@return    array
Explode an include path into an array