Re: bug 18556 - tolower & locales
| From: | Tomas Kuliavas | Date: | Wed, 11 Jul 2012 17:12:57 +0000 |
| Subject: | Re: bug 18556 - tolower & locales | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61127@lists.php.net to get a copy of this message | ||
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