summaryrefslogtreecommitdiff
path: root/Zend/tests/bug36303.phpt
blob: 612022ad566588e648dc7d377e318f6640d1385a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #36303 (foreach on error_zval produces segfault)
--FILE--
<?php
$x="test";
foreach($x->a->b as &$v) {
}
echo "ok\n";
?>
--EXPECTF--
Warning: Invalid argument supplied for foreach() in %sbug36303.php on line 3
ok