summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index e44f1ed4e7..7055b2c86b 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1513,7 +1513,7 @@ PHP_FUNCTION(array_walk)
Z_PARAM_ARRAY_OR_OBJECT_EX(array, 0, 1)
Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache))
Z_PARAM_OPTIONAL
- Z_PARAM_ZVAL_EX(userdata, 0, 1)
+ Z_PARAM_ZVAL(userdata)
ZEND_PARSE_PARAMETERS_END_EX(
BG(array_walk_fci) = orig_array_walk_fci;
BG(array_walk_fci_cache) = orig_array_walk_fci_cache;
@@ -1543,7 +1543,7 @@ PHP_FUNCTION(array_walk_recursive)
Z_PARAM_ARRAY_OR_OBJECT_EX(array, 0, 1)
Z_PARAM_FUNC(BG(array_walk_fci), BG(array_walk_fci_cache))
Z_PARAM_OPTIONAL
- Z_PARAM_ZVAL_DEREF_EX(userdata, 0, 1)
+ Z_PARAM_ZVAL(userdata)
ZEND_PARSE_PARAMETERS_END_EX(
BG(array_walk_fci) = orig_array_walk_fci;
BG(array_walk_fci_cache) = orig_array_walk_fci_cache;
@@ -2470,7 +2470,7 @@ PHP_FUNCTION(extract)
Z_PARAM_ARRAY_EX2(var_array_param, 0, 1, 0)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(extract_type)
- Z_PARAM_ZVAL_EX(prefix, 0, 1)
+ Z_PARAM_ZVAL(prefix)
ZEND_PARSE_PARAMETERS_END();
extract_refs = (extract_type & EXTR_REFS);
@@ -2711,7 +2711,7 @@ PHP_FUNCTION(array_fill_keys)
ZEND_PARSE_PARAMETERS_START(2, 2)
Z_PARAM_ARRAY(keys)
- Z_PARAM_ZVAL_DEREF(val)
+ Z_PARAM_ZVAL(val)
ZEND_PARSE_PARAMETERS_END();
/* Initialize return array */
@@ -2762,10 +2762,10 @@ PHP_FUNCTION(range)
double step = 1.0;
ZEND_PARSE_PARAMETERS_START(2, 3)
- Z_PARAM_ZVAL_DEREF(zlow)
- Z_PARAM_ZVAL_DEREF(zhigh)
+ Z_PARAM_ZVAL(zlow)
+ Z_PARAM_ZVAL(zhigh)
Z_PARAM_OPTIONAL
- Z_PARAM_ZVAL_DEREF(zstep)
+ Z_PARAM_ZVAL(zstep)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
if (zstep) {
@@ -3472,7 +3472,7 @@ PHP_FUNCTION(array_splice)
Z_PARAM_LONG(offset)
Z_PARAM_OPTIONAL
Z_PARAM_LONG(length)
- Z_PARAM_ZVAL_DEREF_EX(repl_array, 0, 1)
+ Z_PARAM_ZVAL(repl_array)
ZEND_PARSE_PARAMETERS_END();
num_in = zend_hash_num_elements(Z_ARRVAL_P(array));
@@ -4164,9 +4164,9 @@ PHP_FUNCTION(array_column)
ZEND_PARSE_PARAMETERS_START(2, 3)
Z_PARAM_ARRAY_HT(arr_hash)
- Z_PARAM_ZVAL_DEREF_EX(zcolumn, 1, 0)
+ Z_PARAM_ZVAL_EX(zcolumn, 1, 0)
Z_PARAM_OPTIONAL
- Z_PARAM_ZVAL_DEREF_EX(zkey, 1, 0)
+ Z_PARAM_ZVAL_EX(zkey, 1, 0)
ZEND_PARSE_PARAMETERS_END();
if ((zcolumn && !array_column_param_helper(zcolumn, "column")) ||
@@ -4297,7 +4297,7 @@ PHP_FUNCTION(array_pad)
ZEND_PARSE_PARAMETERS_START(3, 3)
Z_PARAM_ARRAY(input)
Z_PARAM_LONG(pad_size)
- Z_PARAM_ZVAL_DEREF(pad_value)
+ Z_PARAM_ZVAL(pad_value)
ZEND_PARSE_PARAMETERS_END();
/* Do some initial calculations */
@@ -5864,7 +5864,7 @@ PHP_FUNCTION(array_reduce)
Z_PARAM_ARRAY(input)
Z_PARAM_FUNC(fci, fci_cache)
Z_PARAM_OPTIONAL
- Z_PARAM_ZVAL_DEREF(initial)
+ Z_PARAM_ZVAL(initial)
ZEND_PARSE_PARAMETERS_END();