In PHP how do i know if none of the functions registered using spl_autoload_register have loaded the class?
I have many of these functions autoloading from different namespaces (and no namespaces) and it would be nice to be informed (maybe via an exception) if none has been able to load the class.
The function that is passed as the first parameter should return true on successfully dealing with the requested class and false on failure. For example if the file does not exist then return false. This way php will throw an exception if none of the classes return true and have dealt with the requested class.