[php-src] Issue #20978: OPcode dump of `ZEND_INIT_ARRAY` should not show `(packed)` if OP1 is unused

From: Date: Mon, 19 Jan 2026 22:13:39 +0000
Subject: [php-src] Issue #20978: OPcode dump of `ZEND_INIT_ARRAY` should not show `(packed)` if OP1 is unused
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251571@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20978 Author: TimWolla ### Description https://github.com/php/php-src/blob/0caebcd1966813dd8ac7546f8e94cb6c83a1d873/ext/standard/tests/array/array_map_foreach_optimization_001.phpt#L34 The ->extended_value (which holds the ZEND_ARRAY_NOT_PACKED flag) is completely ignored when OP1 is unused, making the (packed) indicator misleading, since the array will remain uninitalized. The (packed) should either be removed or replaced by something like (uninit). ### PHP Version ```plain git master ``` ### Operating System _No response_

« previous php.bugs (#251571) next »