1
0
Fork 0
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:
Jordi Boggiano 2016-04-15 14:57:07 +01:00
parent 74b3f6fc21
commit 0b44662087
7 changed files with 7 additions and 7 deletions

View file

@ -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));