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

From: Date: Mon, 28 Nov 2005 19:43:20 +0000
Subject: Re: Re: PHP 5.1 (Or How to break tousands of apps outthere)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-20759@lists.php.net to get a copy of this message
Namespace constants can be handy if you'd want to include some library that uses predefined constants and classes that might conflict with other classes and constants in the script. namespace someLib { include('huge_conflicting_library_that_I_dont_want_to_reverse_engineer'); } Stanislav Malyshev wrote:
MB>> your patch wasn't complete. There are conflicts as soon as you have MB>>subnamespaces or constsants. You mean namespace contsants? I don't think they are needed. You can always define utility class for them if you want. As for subnamespaces, which I think also not necessary anyway, I don't see any problem there.


« previous php.internals (#20759) next »