We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi,
the autoloader break due to open_basedir() option enabled in some environment
The text was updated successfully, but these errors were encountered:
Ignore the first thread.. I am thinking of rewriting for this to support open_basedir
if (strpos($classname, 'Cpanel_') === 0) { $filename = str_replace('_', '/', $classname) . '.php'; if (file_exists($filename)) { include_once realpath($filename); } $paths = explode(PATH_SEPARATOR, get_include_path()); $allowPaths = explode(PATH_SEPARATOR, ini_get('open_basedir')); foreach ($paths as $path) { foreach($allowPaths as $allowed) { if(substr($path,0,strlen($allowed)) != $allowed) { continue; } else { $file = $path . DIRECTORY_SEPARATOR . $filename; if (file_exists($file)) { include_once realpath($file); break; } } } } }
Sorry, something went wrong.
No branches or pull requests
hi,
the autoloader break due to open_basedir() option enabled in some environment
The text was updated successfully, but these errors were encountered: