summaryrefslogtreecommitdiff
path: root/Zend/tests/bug36303.phpt
blob: 3ea036a83839d07a2114f423f0d9e842dbbd1bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #36303 (foreach on error_zval produces segfault)
--FILE--
<?php
$x="test";
foreach($x->a->b as &$v) {
}
echo "ok\n";
?>
--EXPECTF--
Warning: Attempt to modify property 'a' of non-object in %sbug36303.php on line 3

Warning: Invalid argument supplied for foreach() in %sbug36303.php on line 3
ok