Re: Make strtolower/strtoupper just do ASCII

From: Date: Fri, 17 Sep 2021 12:55:28 +0000
Subject: Re: Make strtolower/strtoupper just do ASCII
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-116069@lists.php.net to get a copy of this message
Hi Tim, hope you are well :) On Fri, Sep 17, 2021, 5:07 PM Tim Starling <tstarling@wikimedia.org> wrote: > > 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. > may I suggest a function rather than a ino setting? it has the advantage to be contextual and allows the user to enable/disable it before calling some library api they may not be able to(or don't want to) patch. str_use_locale(bool) f.e.? and at some point it can be false by default and later on removed. best, Pierre >

« previous php.internals (#116069) next »