Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87094 invoked from network); 26 Jan 2014 19:24:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2014 19:24:05 -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.204 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.204 mail4.serversure.net Linux 2.6 Received: from [217.147.176.204] ([217.147.176.204:54048] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/B1-12631-3D065E25 for ; Sun, 26 Jan 2014 14:24:04 -0500 Received: (qmail 8773 invoked by uid 89); 26 Jan 2014 19:24:00 -0000 Received: by simscan 1.3.1 ppid: 8766, pid: 8769, t: 0.0561s scanners: attach: 1.3.1 clamav: 0.96/m:52 Received: from unknown (HELO linux-dev4.lsces.org.uk) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 26 Jan 2014 19:24:00 -0000 Message-ID: <52E5615E.5040602@lsces.co.uk> Date: Sun, 26 Jan 2014 19:26:22 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23 MIME-Version: 1.0 To: internals@lists.php.net References: <52E55D0F.3030308@ajf.me> In-Reply-To: <52E55D0F.3030308@ajf.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP and case-sensitivity inconsistency in PHP 6 From: lester@lsces.co.uk (Lester Caine) Andrea Faulds wrote: > Good evening all, > > With the recent discussions making it likely we'll start thinking about things > to add, and more importantly, break in PHP 6, I'd like to bring up the topic of > case-sensitivity in PHP again. > > Would it be possible for us to finally be consistent in PHP 6, with everything > being case-sensitive (or case-insensitive, as the case may be)? It would be a > quite major backwards-compatibility break, but it would also be one that an > automated tool could easily fix your code for. Perhaps something like Python's > 2to3. > > Thoughts? Personally I do take great care to be consistent in my use of 'case' mainly because of problems when switching between Linux and Windows. Early on I kept hitting problems with libraries that worked fine on Windows, but failed on Linux because someone had been lax on file names! I'm still hitting that problem even today. Therefore I would be more than happy to see the general adoption of case-sensitive naming! -- 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