> De : georges [mailto:geol...@gmail.com] > > Currently spl_autoload_register() pass the name of the class entity to the > first *Callable* argument, but there is now way (as i far i know) to know > what kind of entity we're looking for. > -Class ? > -Interface ? > -Trait?
As others already said, classes, interfaces, and trait names share the same table, and there are a lot of places where you cannot determine the type you're looking for when autoloading a symbol. However, we'll need to provide a type when we extend autoloading to functions and constants, if we do it someday. Regards François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php