com php-src: fix strtol call: ext/json/JSON_parser.c

From: Date: Mon, 25 Aug 2014 22:25:29 +0000
Subject: com php-src: fix strtol call: ext/json/JSON_parser.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81102@lists.php.net to get a copy of this message
Commit: 993ae7e9f6df9c565ec5f0b17a8bad3da32470a7 Author: Anatol Belski <ab@php.net> Tue, 26 Aug 2014 00:24:38 +0200 Parents: 1cda5e196c11ad6f298f56c8ad331e0f9a6d6974 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=993ae7e9f6df9c565ec5f0b17a8bad3da32470a7 Log: fix strtol call Changed paths: M ext/json/JSON_parser.c Diff: diff --git a/ext/json/JSON_parser.c b/ext/json/JSON_parser.c index a9f1b0a..d78ec35 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) {

« previous php.cvs (#81102) next »