Re: my last attempt at sanity with namespaces

From: Date: Fri, 17 Oct 2008 00:37:26 +0000
Subject: Re: my last attempt at sanity with namespaces
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-41182@lists.php.net to get a copy of this message
Hi!
I was unclear there, sorry. I was thinking of the situation where 'I use a class that happens to have the same name as the namespace in a third-party lib I need to use in my application'.
Why would you do that? I.e. suppose there's library having namespace Zend::Controller::Action::Plugin - why would your name your class Zend::Controller::Action::Plugin and not Steph::Controller::Action::Plugin?
As it is now, every call to class::method() not accompanied with use should produce E_WARNING.
? That's certainly not how I read it.
That's what is says: If the "use" statement is missing, an E_WARNING should also be thrown to alert the user to the ambiguity -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#41182) next »