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:
Markus Malkusch 2015-04-03 15:27:50 +02:00 committed by Nikita Popov
parent 805078e0a9
commit 8d18848fb0

View File

@ -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', '>=');