mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
15 lines
206 B
Plaintext
15 lines
206 B
Plaintext
|
--TEST--
|
||
|
Bug #35106 (nested foreach fails when array variable has a reference)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$a=array("1","2");
|
||
|
$b=&$a;
|
||
|
foreach($a as $i){
|
||
|
echo $i;
|
||
|
foreach($a as $p);
|
||
|
}
|
||
|
echo "\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
12
|