Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60234 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95391 invoked from network); 20 Apr 2012 13:47:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2012 13:47:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@googlemail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:51876] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/F4-63732-DF8619F4 for ; Fri, 20 Apr 2012 09:47:42 -0400 Received: by lahl5 with SMTP id l5so7528749lah.29 for ; Fri, 20 Apr 2012 06:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QASdjuzRNYAKeTS2b+RHtW2tLOtko+GXYzCZztL7tj0=; b=xgOLuLFcsV4y68m88ltROMlVCgW1nJbBsUCB7xSonkfqk2jXK+Du3dx7hkeKkI7EU/ XDU1yr4RvzS4FrT+1VK3CPfx1vabRwsPQu1JF1djklJb6pvNdlG3xY4ELDvioZ/fYpnC +zlyfYiUOSmjKukgkbMMtn2Eg/AUvYCoFx8kj2PaCECEFP+U+YQKP+s+ovidONl2CDLP YaBkzuVrTqEYC1w0Vd7oaHUpr35g4/P4ksk+z/dQfuL59JC6kyblJUHRY/xZNEdDbuq4 4wclyrMJeNoHlU7kTgcv8Fc9zkeqhZSZ4QUQUNeIEZp0ROgq5QPOwWfIMBjL6zOV7kj7 stZw== MIME-Version: 1.0 Received: by 10.152.112.161 with SMTP id ir1mr5959822lab.13.1334929658616; Fri, 20 Apr 2012 06:47:38 -0700 (PDT) Received: by 10.152.127.68 with HTTP; Fri, 20 Apr 2012 06:47:38 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Apr 2012 15:47:38 +0200 Message-ID: To: "C.Koy" Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Complete case-sensitivity in PHP From: nikita.ppv@googlemail.com (Nikita Popov) 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=18556) 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? 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