diff options
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 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) { |