mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
e470e22e20
- Fixed bug #36214 (__get method works properly only when conditional operator is used). - Fixed bug #39449 (Overloaded array properties do not work correctly). - Fixed bug #39990 (Cannot "foreach" over overloaded properties).
15 lines
206 B
PHP
Executable File
15 lines
206 B
PHP
Executable File
--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
|