Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96693 invoked from network); 20 Apr 2012 13:50:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2012 13:50:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:33595] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/45-63732-889619F4 for ; Fri, 20 Apr 2012 09:50:01 -0400 Received: by yenl5 with SMTP id l5so5809152yen.29 for ; Fri, 20 Apr 2012 06:49:58 -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=W2dipoFCIjk0Fek/VU7JMM5pi55ZRR3Ct+9JYtuSKX0=; b=myffmlxUycT8w8uEFWdPQJm9rh86aDYg3A8NpIWokc6WPA/E/wn5sOj0+cWFmL7093 Yh1KU5dd/QbCsp/Rb0Sd0txNIb6gN6ps6epyGzPRg690bPVqmBqaBJFdFxICh93ZL9zz NR/KKxII58wnbHjFwu9M+AHWmMLjUXIzHtxBWExEUoOdIpFtoJFYvcy2baFbxLo7lIDN KRRZQujblVw2HjKtHQucj5CF8JUSQefBdTheyXG3iHUeZAG3Xo8QJV/lXKPC7uws2Rck XjPbOYC5K4Cbcn5aK0AEMMQ6hOtyC7sCqJaZO0ssnrUeMstci+Qw+3zdx98oAGRcDMZX bhXw== Received: by 10.50.190.167 with SMTP id gr7mr6163872igc.8.1334929793840; Fri, 20 Apr 2012 06:49:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.134.233 with HTTP; Fri, 20 Apr 2012 06:49:32 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2012 16:49:32 +0300 Message-ID: To: Nikita Popov Cc: "C.Koy" , internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0447850f2975dc04be1c90e2 Subject: Re: [PHP-DEV] Complete case-sensitivity in PHP From: arvids.godjuks@gmail.com (Arvids Godjuks) --f46d0447850f2975dc04be1c90e2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Because you can write a function name, say, in Cyrilic and it will just work. 20 =D0=B0=D0=BF=D1=80=D0=B5=D0=BB=D1=8F 2012 =D0=B3. 16:47 =D0=BF=D0=BE=D0= =BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Nikita Popov =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > On Fri, Apr 20, 2012 at 12:20 PM, C.Koy wrote: > > Hi, > > > > This post is about bug #18556 (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 determinist= ic > > 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!", not= e > > 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? > I'm not sure whether I really get the issue, but as it seems the > problem seems to be that PHP is using locale-aware lowercasing > functions in the core. Couldn't the issue be fixed by replacing those > with local-unaware functions? Why does one have to change PHPs general > case sensitivity handling for that? > > Nikita > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d0447850f2975dc04be1c90e2--