From fd4d2df3e609aef1509d881c88cc896ea93568a9 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Thu, 24 Jul 2003 10:13:18 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- ext/standard/tests/array/bug14580.phpt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ext/standard/tests/array/bug14580.phpt 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 -- 2.50.1