![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #36303 (foreach on error_zval produces segfault) ! 3: --FILE-- ! 4: <?php ! 5: $x="test"; ! 6: foreach($x->a->b as &$v) { ! 7: } ! 8: echo "ok\n"; ! 9: ?> ! 10: --EXPECTF-- ! 11: Warning: Attempt to modify property of non-object in %sbug36303.php on line 3 ! 12: ! 13: Warning: Invalid argument supplied for foreach() in %sbug36303.php on line 3 ! 14: ok