diff options
author | Marcus Boerger <helly@php.net> | 2004-08-24 21:35:46 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-08-24 21:35:46 +0000 |
commit | 965783b7c1c760e493fe37a822c4a0674fd7f314 (patch) | |
tree | 774b32fcbab12c612f47b8cec05d9dd9f8ff284c /tests | |
parent | f30355a7df3913916ce3708b6d181a455927d055 (diff) | |
download | php-git-965783b7c1c760e493fe37a822c4a0674fd7f314.tar.gz |
Add new test
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/lang/bug29566.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lang/bug29566.phpt b/tests/lang/bug29566.phpt new file mode 100755 index 0000000000..7fdd3ff4ec --- /dev/null +++ b/tests/lang/bug29566.phpt @@ -0,0 +1,16 @@ +--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=== |