xref: /php-src/Zend/tests/bug35106.phpt (revision 610c7fbe)
1--TEST--
2Bug #35106 (nested foreach fails when array variable has a reference)
3--FILE--
4<?php
5$a=array("1","2");
6$b=&$a;
7foreach($a as $i){
8    echo $i;
9    foreach($a as $p);
10}
11echo "\n";
12?>
13--EXPECT--
1412
15