Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48188 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95179 invoked from network); 4 May 2010 12:15:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2010 12:15:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain adamharvey.name from 209.85.221.191 cause and error) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.221.191 mail-qy0-f191.google.com Received: from [209.85.221.191] ([209.85.221.191:58115] helo=mail-qy0-f191.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/A3-04166-0DF00EB4 for ; Tue, 04 May 2010 08:15:14 -0400 Received: by qyk29 with SMTP id 29so5369816qyk.14 for ; Tue, 04 May 2010 05:15:10 -0700 (PDT) Received: by 10.224.64.227 with SMTP id f35mr4348854qai.310.1272975310181; Tue, 04 May 2010 05:15:10 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.229.181.209 with HTTP; Tue, 4 May 2010 05:14:50 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 May 2010 20:14:50 +0800 X-Google-Sender-Auth: 249c07a102818e5d Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Turkish/Azeri locale support From: aharvey@php.net (Adam Harvey) On 19 April 2010 11:58, Adam Harvey wrote: > As at least some of you would already be aware, there's a > long-standing issue with using PHP in a Turkish or Azeri locale, > namely that case-insensitive lookups within the Zend engine (method > names, for example) fail on lookups involving upper-case I characters, > since lower-case I in those languages is =C4=B1 instead of i (note the la= ck > of a dot). Well, I'm going to assume that people have had whatever say they were going to. It seems that we have three options, so let's put it to a vote. (To be completely clear, this is purely for trunk. This certainly isn't a candidate for backporting to 5.3.) The options are: 1. Apply Tomas's patch to make case-insensitive lookups locale-ignorant. Pros: fixes immediate problem. Cons: breaks BC for case-insensitive function/method name lookups for high-bit characters in single-byte encodings. (Not that we've ever advertised or documented that.) 2. Make function/method names case-sensitive, per Stan's e-mail. Pros: fixes problem; brings PHP into line with most other languages; extra consistency with variables; possible performance improvement. Cons: BC break from current documented behaviour. 3. Do nothing. Pros: no BC breaks of any kind. Cons: continues to annoy Turkish and Azeri developers and those developing for those locales. If you'd care to reply with a vote for option 1, 2 or 3, I'll tally up the votes in a week or so. And yes, I am volunteering to deal with this should option 1 or 2 be picked. Adam