![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults) ! 3: --FILE-- ! 4: <?php ! 5: class A {} ! 6: foreach(($a=(object)new A()) as $v); ! 7: var_dump($a); // UNKNOWN:0 ! 8: ?> ! 9: --EXPECTF-- ! 10: object(A)#%d (0) { ! 11: }