Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11606 invoked from network); 19 Apr 2010 04:59:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2010 04:59:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 72.14.220.152 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 72.14.220.152 fg-out-1718.google.com Received: from [72.14.220.152] ([72.14.220.152:13749] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/30-10110-333EBCB4 for ; Mon, 19 Apr 2010 00:59:32 -0400 Received: by fg-out-1718.google.com with SMTP id l26so2394672fgb.11 for ; Sun, 18 Apr 2010 21:59:19 -0700 (PDT) Received: by 10.223.77.86 with SMTP id f22mr2381596fak.49.1271653158884; Sun, 18 Apr 2010 21:59:18 -0700 (PDT) Received: from pc ([83.228.56.37]) by mx.google.com with ESMTPS id 19sm9613330fkr.9.2010.04.18.21.59.16 (version=SSLv3 cipher=RC4-MD5); Sun, 18 Apr 2010 21:59:16 -0700 (PDT) Message-ID: <6BF24C36133C4E919CFAA5A66278D531@pc> To: "Adam Harvey" , References: Date: Mon, 19 Apr 2010 07:59:15 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Subject: Re: [PHP-DEV] Turkish/Azeri locale support From: sv_forums@fmethod.com ("Stan Vassilev") >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 ı instead of i (note the lack >of a dot). >The long term plan for this, per bug #35050 and any number of >duplicates, was to deal with it in PHP 6. Since PHP 6 isn't going to >happen in its original form, I think we're going to need to revisit >how we want to deal with this. There's a patch linked in the bug from >Tomas Kuliavas and Marcus that fixes the problem by simply redefining >zend_tolower() to a simple locale-insensitive ASCII tolower() >function, which does fix the Turkish and Azeri locales. As you illustrated in your post, fixing it for locales becomes... complicated. If you ask me, there's only one way to fix this, which is how most other languages fixed it: make the next major version of PHP case-sensitive for all identifiers. For less bugs, less locale problems and more performance. It was somewhat-the-plan, even before the Turkish locale issue was brought up. Regards, Stan Vassilev