summaryrefslogtreecommitdiff
path: root/Zend/tests/foreach_undefined.phpt
blob: 101d9839e98edf013bd1e5dd12e8ba2073c6f339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
foreach() & undefined var
--FILE--
<?php

foreach($a as $val);

echo "Done\n";
?>
--EXPECTF--	
Notice: Undefined variable: a in %s on line %d

Warning: Invalid argument supplied for foreach() in %s on line %d
Done