php-src/Zend/tests/foreach_undefined.phpt
2005-08-04 14:12:07 +00:00

15 lines
223 B
PHP

--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