diff options
author | Antony Dovgal <tony2001@php.net> | 2007-05-16 12:54:30 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-05-16 12:54:30 +0000 |
commit | 09a575a20fd47c506f1cb4d0365f8cff2904fcba (patch) | |
tree | c2990bc468851b96a6c36471e7415ef2cc59055f /ext/json/JSON_parser.c | |
parent | 69650d0ebf188eecec26fcd82729cd042b4ca7f9 (diff) | |
download | php-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.c | 2 |
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) { |