get_include_path example


        self::_securityCheck($filename);

        /** * Search in provided directories, as well as include_path */
        $incPath = false;
        if (!empty($dirs) && (is_array($dirs) || is_string($dirs))) {
            if (is_array($dirs)) {
                $dirs = implode(PATH_SEPARATOR, $dirs);
            }
            $incPath = get_include_path();
            set_include_path($dirs . PATH_SEPARATOR . $incPath);
        }

        /** * Try finding for the plain filename in the include_path. */
        if ($once) {
            include_once $filename;
        } else {
            include $filename;
        }

        
public static function getLoader()
    {
        if (null !== self::$loader) {
            return self::$loader;
        }

        spl_autoload_register(array('ComposerAutoloaderInit2421ddaf7b9befaa866c073c7c56b72b', 'loadClassLoader'), true, true);
        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
        spl_autoload_unregister(array('ComposerAutoloaderInit2421ddaf7b9befaa866c073c7c56b72b', 'loadClassLoader'));

        $includePaths = require __DIR__ . '/include_paths.php';
        $includePaths[] = get_include_path();
        set_include_path(implode(PATH_SEPARATOR, $includePaths));

        require __DIR__ . '/autoload_static.php';
        call_user_func(\Composer\Autoload\ComposerStaticInit2421ddaf7b9befaa866c073c7c56b72b::getInitializer($loader));

        $loader->register(true);

        $includeFiles = \Composer\Autoload\ComposerStaticInit2421ddaf7b9befaa866c073c7c56b72b::$files;
        foreach ($includeFiles as $fileIdentifier => $file) {
            composerRequire2421ddaf7b9befaa866c073c7c56b72b($fileIdentifier$file);
        }

        
public static function getIncludePath($filePath)
    {
        static $_include_path = null;

        if (function_exists('stream_resolve_include_path')) {
            // available since PHP 5.3.2             $filePath = strpos($filePath, '.' . DS) === 0 ? substr($filePath, 2) : $filePath;
            return stream_resolve_include_path($filePath);
        }

        if ($_include_path === null) {
            $_include_path = explode(PATH_SEPARATOR, get_include_path());
        }

        foreach ($_include_path as $_path) {
            if (file_exists($_path . DS . $filePath)) {
                return $_path . DS . $filePath;
            }
        }

        return false;
    }
}
return $length;
    }

    /** * Checks the include path config * * @return bool */
    private function checkIncludePath()
    {
        $old = set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . DIRECTORY_SEPARATOR);

        return $old && get_include_path() != $old;
    }

    /** * Compare max execution time config * * @param string $version * @param string $required * * @return bool */
/** * Explodes the given path by the PATH_SEPARATOR constant * * @param string $path * * @return array */
    public static function explodeIncludePath($path = null)
    {
        if ($path === null) {
            $path = (string) get_include_path();
        }

        if (PATH_SEPARATOR === self::COLON_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 $length;
    }

    /** * Checks the include path config */
    private function checkIncludePath(): bool
    {
        if (\function_exists('set_include_path')) {
            $old = set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . DIRECTORY_SEPARATOR);

            return $old && get_include_path() != $old;
        }

        return false;
    }

    /** * Compare max execution time config */
    private function compareMaxExecutionTime(string $version, string $required): bool
    {
Home | Imprint | This part of the site doesn't use cookies.