Questions tagged [spl-autoload-call]

3 questions
5
votes
2 answers

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…
user198729
  • 61,774
  • 108
  • 250
  • 348
3
votes
1 answer

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…
Nazariy
  • 6,028
  • 5
  • 37
  • 61
2
votes
1 answer

Fatal error with spl_autoload

I have this piece of code here to load classes automatically: [ 'interfacesDir' => __DIR__ . DIRECTORY_SEPARATOR . 'interfaces'. DIRECTORY_SEPARATOR, 'abstractsDir' =>…