From: SVN Migration Date: Thu, 24 Jul 2003 10:25:16 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.3RC2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8da6929e93d7880ab80c9d763f64a1fa419fc17a;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/tests/lang/bug24783.phpt b/tests/lang/bug24783.phpt new file mode 100644 index 0000000000..4b5fa4f229 --- /dev/null +++ b/tests/lang/bug24783.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)") +--FILE-- + "foo\0bar"); + foreach ($arr as $key => $val) { + echo strlen($key), ": $key => $val\n"; + } +?> +--EXPECT-- +7: foobar => foobar