Re: [ZEND-ENGINE-CVS] cvs: Zend / zend.c zend_execute_API.c zend_globals.h
| From: | Andi Gutmans | Date: | Sat, 12 Oct 2002 14:59:14 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend / zend.c zend_execute_API.c zend_globals.h | ||
| References: | 1 2 3 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-503@lists.php.net to get a copy of this message | ||
At 09:21 AM 10/11/2002 -0400, Ilia A. wrote:
On October 11, 2002 03:12 am, Andi Gutmans wrote: I understood that earlier. I was just curious if instead of:Okay let us know what you come up with. In any case, I'm sure it'll be sexier :) Andiconvert_to_string(expr_copy);/* locale handling */ if (EG(float_separator)[0] != '.') { char *p = expr_copy->value.str.val; if ((p = strchr(p, '.'))) { *p = EG(float_separator)[0]; } }we could have something like: char foo[100]; locale_sprintf(foo, ....); expr_copy->value.str.val = strdup(foo); It's a bit sucky to have the EG(float_separator) and the strchr(). If you guys think I'm exaggerating let me know :) Never hurts to try, let me come up with code that'll emulate your suggestion. If it works faster then by all means lets use that. However, I do not believe it would be faster in this case.