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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index df46294cd6..872766239e 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -265,15 +265,15 @@ PHP_FUNCTION(json_decode)
{
char *str;
size_t str_len;
- zend_bool assoc = 0; /* return JS objects as PHP objects by default */
- zend_bool assoc_null = 1;
+ bool assoc = 0; /* return JS objects as PHP objects by default */
+ bool assoc_null = 1;
zend_long depth = PHP_JSON_PARSER_DEFAULT_DEPTH;
zend_long options = 0;
ZEND_PARSE_PARAMETERS_START(1, 4)
Z_PARAM_STRING(str, str_len)
Z_PARAM_OPTIONAL
- Z_PARAM_BOOL_EX(assoc, assoc_null, 1, 0)
+ Z_PARAM_BOOL_OR_NULL(assoc, assoc_null)
Z_PARAM_LONG(depth)
Z_PARAM_LONG(options)
ZEND_PARSE_PARAMETERS_END();