From: foobar Date: Thu, 24 Jul 2003 10:13:17 +0000 (+0000) Subject: test for bug #14580 (key() not binary safe) X-Git-Tag: BEFORE_ARG_INFO~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=760fe8e92368e5c961ef5d854987139729da4d52;p=php test for bug #14580 (key() not binary safe) --- 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