From: SVN Migration Date: Thu, 24 Jul 2003 10:13:18 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.3RC2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd4d2df3e609aef1509d881c88cc896ea93568a9;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/array/bug14580.phpt b/ext/standard/tests/array/bug14580.phpt new file mode 100644 index 0000000000..ddf467a53b --- /dev/null +++ b/ext/standard/tests/array/bug14580.phpt @@ -0,0 +1,15 @@ +--TEST--n +Bug #14580 (key() not binary safe) +--FILE-- + "foo\0bar"); + print_r($arr); + $key = key($arr); + echo strlen($key), ': ', $key, "\n"; +?> +--EXPECT-- +Array +( + [foobar] => foobar +) +7: foobar