Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41415 invoked from network); 11 Jul 2012 17:13:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2012 17:13:09 -0000 X-Host-Fingerprint: 89.117.239.132 132.239.117.89.static.mezon.lt Received: from [89.117.239.132] ([89.117.239.132:13541] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/39-01957-424BDFF4 for ; Wed, 11 Jul 2012 13:13:08 -0400 To: internals@lists.php.net,Stas Malyshev Message-ID: <4FFDB419.6010404@users.sourceforge.net> Date: Wed, 11 Jul 2012 20:12:57 +0300 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120613 Icedove/3.0.11 MIME-Version: 1.0 CC: Uwe Schindler , 'PHP Internals' , =?UTF-8?B?J0pvaGFubmVzIFNjaGzDvHRlcic=?= , 'Nikita Popov' References: <4FFD11C1.3090007@sugarcrm.com> <003201cd5f4b$8d9c9e90$a8d5dbb0$@php.net> <003301cd5f4b$dae1a7e0$90a4f7a0$@php.net> <4FFDA72A.6050907@sugarcrm.com> In-Reply-To: <4FFDA72A.6050907@sugarcrm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Posted-By: 89.117.239.132 Subject: Re: [PHP-DEV] bug 18556 - tolower & locales From: tokul@users.sourceforge.net (Tomas Kuliavas) 2012.07.11 19:17, Stas Malyshev rašė: > Hi! > >> I don't think ASCII-only lowercasing is compatible to the allowed PHP >> identifier characters used by class names and what else. > > Right now we use tolower() which is system-dependent, locale-dependent > and doesn't really work with any character that is not 8-bit since it > uses per-character lowercasing. So I'd be very surprised if anybody > actually manages to make non-ASCII class names to work. Is there such > code in existance? In some locales weird things start within ASCII range and PHP was hit by them multiple times. -- Tomas