> From: Stut [mailto:[EMAIL PROTECTED] > > This would need to come from the user implementation of __autoload > through naming conventions or a lookup table. PHP does not > get involved > with resolving a type to a filename, and rightly so.
The question is not to have PHP get involved in the symbol to filename correspondance. I have a lookup table, but the requested type must come from the interpreter context and, if the autoload handler does not get it, it cannot know what type to look for in its lookup table. Unfortunately, even if not very common, a function and a class can have the same name. In this case, there will be two entries in the lookup table. If I don't know which type is requested, I can only search all known types. Maybe it would be enough but it wouldn't be elegant nor efficient, especially if we extend the mechanism to functions and constants. Francois -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php