Hi!
or in other words give the user the ability to specify when he wants the fallback to global and not doing a fallback to global per default. That way
This would be quite complex thing since this way you can't be sure which class gets loaded when you say, e.g., Exception - and thus, if you write something like "throw new Exception("XML did not load")" and except My\XML\Parser\Exception and have catch for it but get just Exception your application would happily unroll to the top and fail.
I think actually knowing what class is going to be loaded is a good idea and overriding loader behavior so it's asked for one class and loads completely different one is not a good idea. One would expect if he asks for class X he gets class X, not class Y.
-- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php