summaryrefslogtreecommitdiff
path: root/ext/soap/php_encoding.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2004-11-03 23:36:51 +0000
committerDerick Rethans <derick@php.net>2004-11-03 23:36:51 +0000
commit59651c4e58015047acfbce1016a58105976d32f6 (patch)
tree16080a9cccc84323214c9d764edd524873494451 /ext/soap/php_encoding.c
parentdbf2c8abd5e85c8fafad4e468819dd67b4e37e4c (diff)
downloadphp-git-59651c4e58015047acfbce1016a58105976d32f6.tar.gz
- Fixed bug #30630: Added a BSD based strtod function that is
locale-independent. (PHP part)
Diffstat (limited to 'ext/soap/php_encoding.c')
-rw-r--r--ext/soap/php_encoding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c
index 00c0f35fb1..64d1eaecce 100644
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@ -23,6 +23,7 @@
#include "php_soap.h"
#include "ext/libxml/php_libxml.h"
+#include "zend_strtod.h"
/* zval type decode */
static zval *to_zval_double(encodeTypePtr type, xmlNodePtr data);
@@ -685,7 +686,7 @@ static zval *to_zval_long(encodeTypePtr type, xmlNodePtr data)
errno = 0;
ret->value.lval = strtol(data->children->content, NULL, 0);
if (errno == ERANGE) { /* overflow */
- ret->value.dval = strtod(data->children->content, NULL);
+ ret->value.dval = zend_strtod(data->children->content, NULL);
ret->type = IS_DOUBLE;
} else {
ret->type = IS_LONG;