cvs: ZendEngine2 /tests foreach_undefined.phpt
| From: | Antony Dovgal | Date: | Thu, 04 Aug 2005 14:12:08 +0000 |
| Subject: | cvs: ZendEngine2 /tests foreach_undefined.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3971@lists.php.net to get a copy of this message | ||
tony2001 Thu Aug 4 10:12:08 2005 EDT
Added files:
/ZendEngine2/tests foreach_undefined.phpt
Log:
add test for the last Dmitry's fix
http://cvs.php.net/co.php/ZendEngine2/tests/foreach_undefined.phpt?r=1.1&p=1
Index: ZendEngine2/tests/foreach_undefined.phpt
+++ ZendEngine2/tests/foreach_undefined.phpt
--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