cvs: php-src(PHP_5_0) /tests/lang bug29566.phpt
| From: | Marcus Boerger | Date: | Tue, 24 Aug 2004 21:40:12 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /tests/lang bug29566.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28431@lists.php.net to get a copy of this message | ||
helly Tue Aug 24 17:40:12 2004 EDT
Added files: (Branch: PHP_5_0)
/php-src/tests/lang bug29566.phpt
Log:
Add new test
http://cvs.php.net/co.php/php-src/tests/lang/bug29566.phpt?r=1.1&p=1
Index: php-src/tests/lang/bug29566.phpt
+++ php-src/tests/lang/bug29566.phpt
--TEST--
Bug #29566 (foreach/string handling strangeness)
--FILE--
<?
$var="This is a string";
$dummy="";
unset($dummy);
foreach($var['nosuchkey'] as $v) {
}
?>
===DONE===
--EXPECTF--
Warning: Invalid argument supplied for foreach() in %sbug29566.php on line %d
===DONE===