Skip to content

Commit cdbe42a

Browse files
committed
ext/standard: use consume_params for array_reduce carry
1 parent a8d40a5 commit cdbe42a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/array.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6409,6 +6409,7 @@ PHP_FUNCTION(array_reduce)
64096409
fci.retval = return_value;
64106410
fci.param_count = 2;
64116411
fci.params = args;
6412+
fci.consume_params = ZEND_FCI_CONSUME_PARAM(1);
64126413

64136414
ZEND_HASH_FOREACH_VAL(htbl, operand) {
64146415
ZVAL_COPY_VALUE(&args[0], return_value);

0 commit comments

Comments
 (0)