mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
23 lines
297 B
PHP
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===
|