Re: Make strtolower/strtoupper just do ASCII

From: Date: Fri, 17 Sep 2021 10:07:30 +0000
Subject: Re: Make strtolower/strtoupper just do ASCII
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-116065@lists.php.net to get a copy of this message
On 17/9/21 7:15 pm, Kamil Tekiela wrote: > +1 from me. I wasn't even aware that these functions are > locale-dependent until recently. I see an added benefit that we could > add them to the optimizer once they are no longer locale-dependent.  > What would happen to users who really need the locale-dependent > functions? Do we offer some workarounds? We could add a global mode, although that would prevent constant propagation, if that's what you mean by adding them to the optimizer. Or we could add variant functions like locale_strtolower() and locale_strtoupper(). But I think I would want to hear from someone who uses locale-dependence so I can understand what their needs are. I guess the RFC will sort that out. -- Tim Starling

« previous php.internals (#116065) next »