mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Disable static autoloader on HHVM, fixes #5192
This commit is contained in:
parent
74b3f6fc21
commit
0b44662087
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'));
|
||||
|
||||
if (PHP_VERSION_ID >= 50600) {
|
||||
if (PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION')) {
|
||||
require_once __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitFilesAutoload::getInitializer($loader));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue