From 8d18848fb0e119f1a66089c75f459e3212b8dabd Mon Sep 17 00:00:00 2001 From: Markus Malkusch Date: Fri, 3 Apr 2015 15:27:50 +0200 Subject: [PATCH] Don't set unserialize_callback_func in Autoloader::register() as it has side effects even when the library is not used --- lib/PhpParser/Autoloader.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/PhpParser/Autoloader.php b/lib/PhpParser/Autoloader.php index d1357ed..ecad0e8 100644 --- a/lib/PhpParser/Autoloader.php +++ b/lib/PhpParser/Autoloader.php @@ -23,7 +23,6 @@ class Autoloader return; } - ini_set('unserialize_callback_func', 'spl_autoload_call'); spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend); self::$registered = true; self::$runningOnPhp7 = version_compare(PHP_VERSION, '7.0-dev', '>=');