Re: Inconsistent float to string vs. string to floatcasting

From: Date: Mon, 07 Jan 2019 21:43:33 +0000
Subject: Re: Inconsistent float to string vs. string to floatcasting
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-103700@lists.php.net to get a copy of this message
AFAIK, gettext functions do depend on setlocale. I wish so much that it wasn't the case (as you then need to have the locale installed on the system), but it is, so setlocale definetely is quite used in the wild and deprecating it seems a bit far-fetched unless we can actually replace it with something else (better). But gettext has other issues related to being cached in the current process, as you need to restart apache if the compiled .mo files have changed to get the new strings :( Another function that is influenced by setlocale is strftime. This is often the common way to display a date in a different language. So I'm all for deprecating setlocale but before that we would need to have something better for everything that's currently depending on it :) BohwaZ

« previous php.internals (#103700) next »