Browse Source

add test for the last Dmitry's fix

PHP-5.1
Antony Dovgal 21 years ago
parent
commit
b87970a956
  1. 14
      Zend/tests/foreach_undefined.phpt

14
Zend/tests/foreach_undefined.phpt

@ -0,0 +1,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
Loading…
Cancel
Save