mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2025-01-22 05:11:39 +01:00
Don't set unserialize_callback_func in Autoloader::register() as it has side effects even when the library is not used
This commit is contained in:
parent
805078e0a9
commit
8d18848fb0
@ -23,7 +23,6 @@ class Autoloader
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ini_set('unserialize_callback_func', 'spl_autoload_call');
|
|
||||||
spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend);
|
spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend);
|
||||||
self::$registered = true;
|
self::$registered = true;
|
||||||
self::$runningOnPhp7 = version_compare(PHP_VERSION, '7.0-dev', '>=');
|
self::$runningOnPhp7 = version_compare(PHP_VERSION, '7.0-dev', '>=');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user