spl-autoload-call

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; } ...

Scrambled class name passed to spl_autoload_call via call_user_func

I have discovered interesting behaviour of php while calling different classes dynamically. For some reason class name get scrambled and its look like slice of hashed string. here is example of php code I'm trying to execute: call_user_func(array('app_event', 'arrayItems')); Here is backtrace of this event: Array ( [0] => Array ...