Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83080 invoked from network); 25 Feb 2015 10:04:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2015 10:04:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:34373] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/44-62407-91E9DE45 for ; Wed, 25 Feb 2015 05:04:10 -0500 Received: (qmail 25165 invoked by uid 89); 25 Feb 2015 10:04:06 -0000 Received: by simscan 1.3.1 ppid: 25149, pid: 25162, t: 0.0787s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@86.189.147.37) by mail4.serversure.net with ESMTPA; 25 Feb 2015 10:04:06 -0000 Message-ID: <54ED9E12.80808@lsces.co.uk> Date: Wed, 25 Feb 2015 10:04:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [Discussion] Last chance for case-sensitive engine From: lester@lsces.co.uk (Lester Caine) On 25/02/15 09:40, Derick Rethans wrote: > To be really honest, I don't think all of the pro's hold up. For a hash > check, there is no change really - the only change that is to remove the > zend_tolower. Previous discussions have IIRC shown that the performance > benefit is minimal. Compatibility with PSR's is also a moot point, as > there are just recommendations. There is still the matter of 'internationalization', which is technically a different RFC, but zend_tolower is only handling ASCII character set? So modifying that function where appropriate may be advantageous later. > However, there are a few extra cons: You are going to break > people's code on a large scale. I simply don't think it is worth it > (again, just like when this discussion popped up every year or so for > the last decade). Having been stung by the 'cons' already in reverse when moving perfectly stable code from windows to linux I'd actually say that it would have been a 'pro' if the mixed case stuff that previous programmers had used had been eliminated. I take a lot more care now ensuring that case IS consistent and if PHP nannied this in the same way it nannies some other style points, then I would put under the pro rather than con! Some of the BC areas being discussed do seem 'why put us through that', but unicode is still being pushed to the sidelines and this is one of those BC breaks which would help pave the way for a clean unicode core in the future. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk