summaryrefslogtreecommitdiff
path: root/ext/json/JSON_parser.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-26 00:24:38 +0200
committerAnatol Belski <ab@php.net>2014-08-26 00:25:29 +0200
commit993ae7e9f6df9c565ec5f0b17a8bad3da32470a7 (patch)
tree7ec488a62c601a54fe22364a240c3e216cc131e2 /ext/json/JSON_parser.c
parent1cda5e196c11ad6f298f56c8ad331e0f9a6d6974 (diff)
downloadphp-git-993ae7e9f6df9c565ec5f0b17a8bad3da32470a7.tar.gz
fix strtol call
Diffstat (limited to 'ext/json/JSON_parser.c')
-rw-r--r--ext/json/JSON_parser.c2
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)
{