Re: Proposal for PHP 7 : case-sensitive symbols

From: Date: Sun, 21 Dec 2014 00:19:55 +0000
Subject: Re: Proposal for PHP 7 : case-sensitive symbols
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-79831@lists.php.net to get a copy of this message
Hi all, On Sun, Dec 21, 2014 at 7:01 AM, F & N Laupretre <nf.laupretre@yahoo.fr> wrote: > I would like to propose that namespaces, functions, and classes become > case-sensitive (constants are already case-sensitive). Actually, I never > understood why they are case-insensitive. Even if the performance gain is > negligible, I think it could be the right time to question this. > Defining thisismyfunction() {} then call it THISisMYFunction() is not recommended at all. Keeping not recommended spec forever is not a good idea. IMHO. Using strtolower() all over place in the Engine to keep running not recommended code does not make much sense. It's BC, but it would be easy spot it by an compatibility check script. Once case is used properly, scripts run both new and old PHP. Therefore, BC issue is not critical. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#79831) next »