Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27651 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12420 invoked by uid 1010); 25 Jan 2007 14:52:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12405 invoked from network); 25 Jan 2007 14:52:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2007 14:52:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=nlopess@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=nlopess@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 212.55.154.22 cause and error) X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.22 relay2.ptmail.sapo.pt Linux 2.4/2.6 Received: from [212.55.154.22] ([212.55.154.22:54694] helo=sapo.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/CB-13597-614C8B54 for ; Thu, 25 Jan 2007 09:52:06 -0500 Received: (qmail 20077 invoked from network); 25 Jan 2007 14:52:02 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.210) by relay2 with SMTP; 25 Jan 2007 14:52:02 -0000 Received: (qmail 21411 invoked from network); 25 Jan 2007 14:52:01 -0000 X-AntiVirus: PTMail-AV 0.3-0.88.6 X-Virus-Status: Clean (0.02565 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[82.155.77.143]) (envelope-sender ) by mta15 (qmail-ldap-1.03) with SMTP for ; 25 Jan 2007 14:52:01 -0000 Message-ID: <000b01c74090$60bce950$0100a8c0@pc07653> To: "Ilia Alshanetsky" Cc: References: <0F741213-BCA4-4923-A83A-3E4E9C561DAE@prohost.org> <5F.94.13597.04698B54@pb1.pair.com> <45B897E5.40007@zend.com> <41936.195.22.180.233.1169730121.squirrel@avilys.eik.lt> <45B8B2E5.4010204@zend.com> <40869.195.22.180.233.1169733866.squirrel@avilys.eik.lt> <3ED37F9A-9BC8-4BBA-BB85-77BB0B188074@prohost.org> Date: Thu, 25 Jan 2007 14:52:03 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Subject: Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released From: nlopess@php.net ("Nuno Lopes") >> PHP needs locale insensitive strcasecmp() or your developers will >> continue >> hitting string comparison issues in Turkish and Azerbaijani. Ilia >> patched >> it in timezone parsing code. Some day other strcasecmp will pop in other >> place. >> >> Switching locale everytime you want to compare strings is a hack and not >> a >> bug fix. > > Its a solution that works. There are very few instances where such > behavior is needed and in php6 it won't be relevant anyway since posix > locales will not be used. This is not true at all.. I even think this is a big misconception of PHP 6. Although this has nothing to do with the issue mentioned above, we will still need setlocale() in PHP 6 because of externals libs. Even the bundled PCRE uses locales, and that is very handful (e.g. locale-dependent '\w'). So, POSIX locales will be deprecated for string handling, date formatting and such things, but they will still be used by external libs. Nuno