Why is unserialize_callback_func needed when spl_autoload_register is already used?
ini_set('unserialize_callback_func', 'spl_autoload_call'); spl_autoload_register(array(self::getInstance(), 'autoload')); Why set spl_autoload_call like above? I made a test: $serialized_object='O:1:"a":1:{s:5:"value";s:3:"100";}'; ini_set('unserialize_callback_func','mycallback'); function mycallback($classname) { echo 1; } ...