1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/gh19613.phpt
Ilija Tovilo f9ce6d8f3a Stale array iterator pointer
Fixes GH-19613
Closes GH-19616
2025-09-03 18:14:43 +02:00

23 lines
297 B
PHP

--TEST--
GH-19613: Invalidated array iterator pointer after array separation
--FILE--
<?php
$a = [1];
$i = 0;
foreach ($a as &$v) {
$a[0] = $a;
foreach ($v as &$w) {
$w = $a;
if ($i++ == 64) {
die("===DONE===\n");
}
}
}
?>
--EXPECT--
===DONE===