summaryrefslogtreecommitdiff
path: root/ext/json/JSON_parser.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-05-16 12:54:30 +0000
committerAntony Dovgal <tony2001@php.net>2007-05-16 12:54:30 +0000
commit09a575a20fd47c506f1cb4d0365f8cff2904fcba (patch)
treec2990bc468851b96a6c36471e7415ef2cc59055f /ext/json/JSON_parser.c
parent69650d0ebf188eecec26fcd82729cd042b4ca7f9 (diff)
downloadphp-git-09a575a20fd47c506f1cb4d0365f8cff2904fcba.tar.gz
MFH: fix #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.')
Diffstat (limited to 'ext/json/JSON_parser.c')
-rw-r--r--ext/json/JSON_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c
index b57d65174e..ae8e7522e0 100644
--- a/ext/json/JSON_parser.c
+++ b/ext/json/JSON_parser.c
@@ -288,7 +288,7 @@ static void json_create_zval(zval **z, smart_str *buf, int type)
}
else if (type == IS_DOUBLE)
{
- ZVAL_DOUBLE(*z, atof(buf->c));
+ ZVAL_DOUBLE(*z, zend_strtod(buf->c, NULL));
}
else if (type == IS_STRING)
{