Re: Deprecate setlocale?

From: Date: Wed, 01 Apr 2015 19:32:09 +0000
Subject: Re: Deprecate setlocale?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-85662@lists.php.net to get a copy of this message
Hi! > For Imagick, the issue is that a SVG string was being generated with > something like: > > sprintf(svg, "pos: %f %f", x, y); Yeah that is a problem... Two ways I see to fix it: 1. Reset the locale before it and restore afterwards (non-TS and in general may be problematic) 2. Use other formatting functions like Zend engine ones or some other library. Global state sucks, and that's the reason locale sucks :( -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#85662) next »