Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60231 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89160 invoked from network); 20 Apr 2012 13:13:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2012 13:13:50 -0000 X-Host-Fingerprint: 208.107.13.98 host-98-13-107-208.midco.net Date: Fri, 20 Apr 2012 09:13:50 -0400 Received: from [208.107.13.98] ([208.107.13.98:12896] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/B3-63732-E01619F4 for ; Fri, 20 Apr 2012 09:13:50 -0400 Message-ID: <30.B3.63732.E01619F4@pb1.pair.com> To: internals@lists.php.net References: User-Agent: slrn/pre1.0.0-18 (Linux) X-Posted-By: 208.107.13.98 Subject: Re: Complete case-sensitivity in PHP From: weierophinney@php.net (Matthew Weier O'Phinney) On 2012-04-20, "C.Koy" wrote: > 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? It's not just about changes to the engine. If you introduce a runtime option that switches behavior, you then get a portability problem -- code runs fine in one context, but not the other. -- Matthew Weier O'Phinney Project Lead | matthew@zend.com Zend Framework | http://framework.zend.com/ PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc