Make `spl_autoload_functions()` return the same as PHP

This fixes Callable format: Class::method isconsist with PHP

Closes #3700