summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-14 11:58:08 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-14 11:58:08 +0100
commit1b2aba285db488852844c2eac484d35569ec4442 (patch)
treecbf5fd822e631029256af5b2baec363b384ae02f /ext/json
parentec58a6f1b062a0c09cd1ef4097f257d5c1bb5e4e (diff)
downloadphp-git-1b2aba285db488852844c2eac484d35569ec4442.tar.gz
Remove Z_PARAM separate params where they don't make sense
Separation can only possibly make sense for array parameters (or something that can contain arrays, like zval parameters). It never makes sense to separate a bool. The deref parameters are also of dubious utility, but leaving them for now.
Diffstat (limited to 'ext/json')
-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 df46294cd6..669f2851e7 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -273,7 +273,7 @@ PHP_FUNCTION(json_decode)
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();