From: Anatol Belski Date: Mon, 25 Aug 2014 22:24:38 +0000 (+0200) Subject: fix strtol call X-Git-Tag: PRE_PHP7_REMOVALS~323 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=993ae7e9f6df9c565ec5f0b17a8bad3da32470a7;p=php fix strtol call --- diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index a9f1b0a7ae..d78ec35a2e 100644 --- a/ext/json/JSON_parser.c +++ b/ext/json/JSON_parser.c @@ -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) {