[php-src] Issue #15966: Appending a to list should maintain list

From: Date: Fri, 20 Sep 2024 19:21:45 +0000
Subject: [php-src] Issue #15966: Appending a to list should maintain list
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247838@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15966 Author: mvorisek ### Description repro: https://3v4l.org/fV80Z I know historically there is internal "next free index variable", but array with 0...n-1 keys should stay list even when some key/value is added. using [] operator. Related with https://github.com/phpstan/phpstan/issues/11628 as array_is_list($v) should imply list and such list must maintain list behaviour when value is appended/unset to/from the end.

« previous php.bugs (#247838) next »