summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index ffaefa1c9d..3c5e22cf5c 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -799,7 +799,7 @@ static PHP_FUNCTION(json_encode)
static PHP_FUNCTION(json_decode)
{
char *str;
- int str_len;
+ size_t str_len;
zend_bool assoc = 0; /* return JS objects as PHP objects by default */
zend_long depth = JSON_PARSER_DEFAULT_DEPTH;
zend_long options = 0;