Re: Re: PHP 5.1 (Or How to break tousands of apps outthere)

From: Date: Mon, 28 Nov 2005 20:49:48 +0000
Subject: Re: Re: PHP 5.1 (Or How to break tousands of apps outthere)
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-20778@lists.php.net to get a copy of this message
I thought that was the whole point of namespaces. That you can include stuff without worries that things will conflict: namespace name1 { define("CONSTANT", "Hello world."); } namespace name2 { define("CONSTANT", "Hello mars."); } Would produce seporate constants because they're defined in different namespaces. Stanislav Malyshev wrote:
BdB>>uses predefined constants and classes that might conflict with other BdB>>classes and constants in the script. Just a sec. For now, there's no constants outside of classes AFAIR? Only define() and class constants. So your library won't refer to any namespace constants, right? So how namespace constants would help you - do you want to override define() to be namespace-local or what?


« previous php.internals (#20778) next »