Re: Order of class resolution with namespaces and autoload

From: Date: Tue, 23 Oct 2007 04:19:24 +0000
Subject: Re: Order of class resolution with namespaces and autoload
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-32927@lists.php.net to get a copy of this message
namespace Foo; import Exception;
Once more, import with one-term argument is a no-op. And will stay so. That's why we have the warning.
I think that either import ::Exception needs to work, or import Exception shouldn't issue a warning.
We'll discuss this one. I wonder if anybody else feels a need for it?
I think you need to envision working in a large team on a large project here, but you may simply not see the need.
I'd say if you have large team which has a possibility of having classes with same names running into each other, why not having them reside in different namespaces? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32927) next »