Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93221 invoked from network); 20 Apr 2012 13:25:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2012 13:25:53 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:52475] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/94-63732-0E3619F4 for ; Fri, 20 Apr 2012 09:25:52 -0400 Received: by iaeh11 with SMTP id h11so15874706iae.29 for ; Fri, 20 Apr 2012 06:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=9oR0ZlFIGy8svTh/KoywZprSb3jqKgL8mlTdre1BgBU=; b=Ag2Zme6F8H4dz4P3J3mo2ebhaN5nxCoSsensZ38frkUBerGbbL+KfIBhVJ2+FycaMq ri+CyIrFIUoVgiIOB77BPnSoTnt1zYe3SrlbdT5q5BRNMpU6s8JC5QDPpXGtDJ7bzHdN B9N+3YUdy1oSWhOt9XZ4YGUlA5ghGMP4giNO/kePvTmYfCsehO510tASXv7x97/AWNgh T7IdZAzYniCHdC9xafhgCGhOttvmJYeeIHoL84AsDUfsDsoP/8KmGExk7VoOHbIgxZGp aqt1ZGaacQZL83UdnTji/iDk1tuPTrrUVnOxj0bvRalLM7QRBStUSWfMzCBGm75Ufhge eBPQ== Received: by 10.50.189.200 with SMTP id gk8mr5956993igc.8.1334928350062; Fri, 20 Apr 2012 06:25:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.134.233 with HTTP; Fri, 20 Apr 2012 06:25:29 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2012 16:25:29 +0300 Message-ID: To: "C.Koy" Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=14dae93408591b283404be1c3a2b Subject: Re: [PHP-DEV] Complete case-sensitivity in PHP From: arvids.godjuks@gmail.com (Arvids Godjuks) --14dae93408591b283404be1c3a2b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In past years such switches where deprecated and removed (in 5.3 most of them, in 5.4 finally all that stuff is gone for good). So any solution, involving a switch that modifies how code is executed will hit a wall of resistance. It's the lesson that was learned the hard way. So it may be the case to make PHP case-sensetive. There will be code broken, probably a lot. But that can be fixed, and I personally always write with respect to char case, so that will be no problem for me. 20 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3. 13:20 =D0=BF=D0=BE=D0= =BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C C.Koy =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > Hi, > > This post is about bug #18556 (https://bugs.php.net/bug.php?**id=3D18556<= https://bugs.php.net/bug.php?id=3D18556>) > which is a decade old. > > As the recent comments on that page indicate, there's not a deterministic > way to resolve this issue, apart from eliminating tolower() calls for > function/class names during lookup. Hence totally case-sensitive PHP. > > Before opposing with "No, this will break a lot of existing code!", note > that I'm not suggesting a static permanent change in the engine; rather a > runtime option that will need to be enabled (cli option, INI setting), > without which PHP will work as before. > > Since I'm not well versed in the workings of Zend engine, I solicit the > wisdom/experience of people in this list: Is this doable in a practical > way, without making grand changes in Zend? > > best regards, > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --14dae93408591b283404be1c3a2b--