mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Fix #5672
This fixes the issue reported in #5672. It just makes sure the ZendGuard encoded files can be autoloaded correctly.
This commit is contained in:
parent
58b27289d0
commit
817b2747c7
7 changed files with 7 additions and 7 deletions
|
@ -23,7 +23,7 @@ class ComposerAutoloaderInitFilesAutoload
|
|||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitFilesAutoload', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require_once __DIR__ . '/autoload_static.php';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue