Re: Make strtolower/strtoupper just do ASCII
| From: | Christian Schneider | Date: | Fri, 17 Sep 2021 12:41:19 +0000 |
| Subject: | Re: Make strtolower/strtoupper just do ASCII | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116067@lists.php.net to get a copy of this message | ||
Am 17.09.2021 um 10:43 schrieb Nikita Popov <nikita.ppv@gmail.com>:
> The locale-sensitivity of strtolower() only works with legacy
> single-byte encodings and as such is of questionable usefulness even in
> cases where it is not actively harmful.
>
> That said, I do think this change requires an RFC.
I agree that this is a big enough BC to require an RFC and I'd recommend a phase where
strtolower in combination with locales where it *did* make something useful to show a deprecation
warning to allow migration away from strtolower in those cases.
- Chris