]> granicus.if.org Git - php/commitdiff
fix strtol call
authorAnatol Belski <ab@php.net>
Mon, 25 Aug 2014 22:24:38 +0000 (00:24 +0200)
committerAnatol Belski <ab@php.net>
Mon, 25 Aug 2014 22:25:29 +0000 (00:25 +0200)
ext/json/JSON_parser.c

index a9f1b0a7ae67bc64211d25e24ef74aba42472023..d78ec35a2eeedd5c04608c9ba0fdd7d435fa4911 100644 (file)
@@ -326,7 +326,7 @@ static void json_create_zval(zval *z, smart_str *buf, int type, int options TSRM
                        }
                }
 
-               ZVAL_LONG(z, strtol(buf->s->val, NULL, 10));
+               ZVAL_LONG(z, ZEND_STRTOL(buf->s->val, NULL, 10));
     }
     else if (type == IS_DOUBLE)
     {