Re: Re: Order of class resolution with namespaces and autoload

From: Date: Sat, 20 Oct 2007 23:32:13 +0000
Subject: Re: Re: Order of class resolution with namespaces and autoload
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-32894@lists.php.net to get a copy of this message
Right, it's not going to affect most classes most of the time, but my point is that you can't predict which classes will be affected.
You can - set of internal classes is very well known, unless you are using some exotic extensions. In any case, I am not 100% happy with this solution, but the only alternative proposed so far (and we did consider it before deciding) is worse both in terms of easiness to use for the code and performance. If you can think of any way to solve this which not includes calling autoload on each instance of internal class used in namespace and requiring to always use :: to refer to internal classes - I'd be happy to hear it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32894) next »