[php-src] master: [skip ci] Document array iterator and pointer changes in PHP 8.6 UPGRADING

From: Date: Tue, 15 Sep 2026 16:59:41 +0000
Subject: [php-src] master: [skip ci] Document array iterator and pointer changes in PHP 8.6 UPGRADING
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-141211@lists.php.net to get a copy of this message
Author: Weilin Du (LamentXU123) Date: 2026-09-16T00:56:31+08:00 Commit: https://github.com/php/php-src/commit/c31ae2d66614c2e7199235359a15e025ee112280 Raw diff: https://github.com/php/php-src/commit/c31ae2d66614c2e7199235359a15e025ee112280.diff [skip ci] Document array iterator and pointer changes in PHP 8.6 UPGRADING Describe the iteration and internal pointer behavior retained from #23607 in PHP 8.6 after reverting the change in PHP 8.4 and PHP 8.5. Changed paths: M UPGRADING Diff: diff --git a/UPGRADING b/UPGRADING index ee7f4c3ab73d..0ebebd43e340 100644 --- a/UPGRADING +++ b/UPGRADING @@ -20,6 +20,9 @@ PHP 8.6 UPGRADE NOTES ======================================== - Core: + . By-reference foreach loops may now visit previously skipped elements + after array compaction. Internal pointers on deleted elements now move + to the next surviving element during copy-on-write. . ??/empty() on a magic property no longer call __get() when __isset() has materialized the property by writing into the property table. The freshly-written value is returned directly. isset() is unaffected.

« previous php.cvs (#141211) next »