summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-08-24 21:35:46 +0000
committerMarcus Boerger <helly@php.net>2004-08-24 21:35:46 +0000
commit965783b7c1c760e493fe37a822c4a0674fd7f314 (patch)
tree774b32fcbab12c612f47b8cec05d9dd9f8ff284c /tests
parentf30355a7df3913916ce3708b6d181a455927d055 (diff)
downloadphp-git-965783b7c1c760e493fe37a822c4a0674fd7f314.tar.gz
Add new test
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lang/bug29566.phpt16
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===