Re: Make strtolower/strtoupper just do ASCII

From: Date: Fri, 17 Sep 2021 10:23:37 +0000
Subject: Re: Make strtolower/strtoupper just do ASCII
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-116066@lists.php.net to get a copy of this message
On 17/9/21 6:43 pm, Nikita Popov wrote: > We've been slowly moving away from locale-dependent functionality. > Since PHP 8 we no longer inherit any locales from the environment and > have made float to string conversion locale-independent. > > I would very much support making strtolower() and friends a simple > ASCII case conversion operation. mb_strtolower() etc already offer > full Unicode-compliant case conversions that work correctly with > multi-byte encodings. 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. Thanks Nikita. I'll write the code and then make an RFC. -- Tim Starling

« previous php.internals (#116066) next »