namespaces: import name conflicts with defined class

From: Date: Tue, 02 Oct 2007 11:56:04 +0000
Subject: namespaces: import name conflicts with defined class
Groups: php.internals 
Request: Send a blank email to internals+get-32541@lists.php.net to get a copy of this message
Hi all, import Foo::Bar AS DomDocument; import Foo::Exception; import MyStuff::Dom::XsltProcessor; Result in a "Fatal error: Import name '...' conflicts with defined class" Of course i want to refer to my own exception in my application or framework as "Exception", and of course i want to use it without prefixes (import myStuff::Exception AS MyStuffException), i wouldn't use namespace otherwise (there is no other benefit, right?). It's not that one accidentally puts an "import Foo::Exception" in his file .. Is there a good reason for this bevhaviour that i don't see? There is still ::Exception to access the class in the global namespace. regards, Benjamin

« previous php.internals (#32541) next »