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

From: Date: Sat, 26 Nov 2005 08:50:39 +0000
Subject: Re: Re: PHP 5.1 (Or How to break tousands of apps outthere)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-20504@lists.php.net to get a copy of this message
On Fri Nov 25, 2005 at 09:1028PM +0100, Marcus Boerger wrote: > i think you didn't understand the whole point here. Naming something > after an every day word just like 'Date' is like screaming for problems in > bigger scenarios. It is a beginners mistake to not prefix such stuff. Assuming this is correct, then not only userland code should use proper prefixes, but also the PHP language core should do so, no? Speaking of this, I like Greg's suggestion about prefixing all internal classes with PHP_. While there are certainly classes out there that are prefixed with it, we could tell developers that starting with e.g. PHP 6 the PHP_* class scope is reserved for the language core and must not be used for any other purpose. - Martin

« previous php.internals (#20504) next »