1
0
Fork 0

Disable static autoloader on HHVM, fixes #5192

pull/5208/head
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

@ -580,7 +580,7 @@ INCLUDE_PATH;
}
$file .= <<<STATIC_INIT
if (PHP_VERSION_ID >= $staticPhpVersion) {
if (PHP_VERSION_ID >= $staticPhpVersion && !defined('HHVM_VERSION')) {
require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit$suffix::getInitializer(\$loader));

View File

@ -23,7 +23,7 @@ class ComposerAutoloaderInitFilesAutoloadOrder
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitFilesAutoloadOrder', '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\ComposerStaticInitFilesAutoloadOrder::getInitializer($loader));

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

View File

@ -27,7 +27,7 @@ class ComposerAutoloaderInitFilesAutoload
array_push($includePaths, get_include_path());
set_include_path(join(PATH_SEPARATOR, $includePaths));
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));

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

View File

@ -23,7 +23,7 @@ class ComposerAutoloaderInitIncludePath
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitIncludePath', '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\ComposerStaticInitIncludePath::getInitializer($loader));

View File

@ -23,7 +23,7 @@ class ComposerAutoloaderInitTargetDir
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitTargetDir', '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\ComposerStaticInitTargetDir::getInitializer($loader));