From 18dd41d76552b2853debdf3d8303a47c042637c9 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Tue, 27 Jun 2023 18:11:49 +0200 Subject: [PATCH] Test real packed init in closure magic stuff --- Zend/zend_closures.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c index 2072eac72d712..8bcb65587b8d1 100644 --- a/Zend/zend_closures.c +++ b/Zend/zend_closures.c @@ -307,6 +307,7 @@ static ZEND_NAMED_FUNCTION(zend_closure_call_magic) /* {{{ */ { } ZEND_HASH_FOREACH_END(); } else if (ZEND_NUM_ARGS()) { array_init_size(&fci.params[1], ZEND_NUM_ARGS()); + zend_hash_real_init_packed(Z_ARRVAL(fci.params[1])); zend_copy_parameters_array(ZEND_NUM_ARGS(), &fci.params[1]); } else { ZVAL_EMPTY_ARRAY(&fci.params[1]);