Re: snprintf/var_export issues

From: Date: Tue, 19 Jun 2007 12:31:29 +0000
Subject: Re: snprintf/var_export issues
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-30250@lists.php.net to get a copy of this message
On Fri, 15 Jun 2007, Derick Rethans wrote: > 2. Add a new modifier "H" or "L" that is like G, but > locale-insensitive. I implemented this as the "H" modifier. > Notes: > > - _build_trace_args (from Zend/zend_exceptions.c) seems also to be > affected, as it uses the G modifier to build argument lists as string > for exception traces. So now it uses the , to separate arguments AND > as float decimal sep in case of a de_DE locale. This one can not be fixed, as it uses zend_sprintf() which just wraps around sprintf() incase sprintf is not "broken". sprintf() doesn't have a format modifier for this purpose, so what we can do here is 1. always use our sprintf() implementation; 2. use php_printf() or 3. ignore it. Derick

« previous php.internals (#30250) next »