diff options
author | Derick Rethans <derick@php.net> | 2004-11-03 23:13:32 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2004-11-03 23:13:32 +0000 |
commit | e612284ea483a14cb853ffef8e1a63289e4cd197 (patch) | |
tree | 315654f2fa4cee724cba689d7f361c111ceda640 /Zend/zend_ini.c | |
parent | ae78d7d4bfe90a48dc5dad4b465ebbf8c289c4b0 (diff) | |
download | php-git-e612284ea483a14cb853ffef8e1a63289e4cd197.tar.gz |
- Fixed bug #30630: Added a BSD based strtod function that is
locale-independent.
Diffstat (limited to 'Zend/zend_ini.c')
-rw-r--r-- | Zend/zend_ini.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 45ff7d9b9c..e43ecbb833 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -24,6 +24,7 @@ #include "zend_ini.h" #include "zend_alloc.h" #include "zend_operators.h" +#include "zend_strtod.h" static HashTable *registered_zend_ini_directives; @@ -298,9 +299,9 @@ ZEND_API double zend_ini_double(char *name, uint name_length, int orig) if (zend_hash_find(EG(ini_directives), name, name_length, (void **) &ini_entry)==SUCCESS) { if (orig && ini_entry->modified) { - return (double) (ini_entry->orig_value ? strtod(ini_entry->orig_value, NULL) : 0.0); + return (double) (ini_entry->orig_value ? zend_strtod(ini_entry->orig_value, NULL) : 0.0); } else if (ini_entry->value) { - return (double) strtod(ini_entry->value, NULL); + return (double) zend_strtod(ini_entry->value, NULL); } } @@ -486,7 +487,7 @@ ZEND_API ZEND_INI_MH(OnUpdateReal) p = (double *) (base+(size_t) mh_arg1); - *p = strtod(new_value, NULL); + *p = zend_strtod(new_value, NULL); return SUCCESS; } |