Re: Deprecate setlocale?
| From: | Marc Bennewitz | Date: | Wed, 01 Apr 2015 19:11:00 +0000 |
| Subject: | Re: Deprecate setlocale? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85655@lists.php.net to get a copy of this message | ||
Hi
Am 01.04.2015 um 21:02 schrieb Stanislav Malyshev:
Hi!In a dynamic language like PHP it's a very normal and basic case handling language features dynamically including the one described in the bug report (Find an upper case constant for the given input). What I mean is that we should have basic functions addressing this. So for example we need a basic function to upper/lower case only ascii characters. MarcThis would be a bad idea, however much better idea is to make *system* case folding (i.e. methods, classes, etc.) use ascii-only. Which we already mostly do (see zend_operators.c it explains what's going on). Of course, there can be instances of using the wrong function.- make strtoupper/strtolower etc. to work with ascii only