summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-05-19 11:15:57 +0000
committerAntony Dovgal <tony2001@php.net>2006-05-19 11:15:57 +0000
commit0f26edab9de02a6061caac73219cd19a0abbf7a5 (patch)
treec6564cbf9d8576837925fac43220a40c2ee262ac
parent7eda78c8ce9b76afbb51264229be1e6097582cac (diff)
downloadphp-git-0f26edab9de02a6061caac73219cd19a0abbf7a5.tar.gz
add new test
-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..5f292bd759
--- /dev/null
+++ b/tests/lang/bug29566.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #29566 (foreach/string handling strangeness)
+--FILE--
+<?php
+$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===