From: Antony Dovgal Date: Wed, 13 Apr 2005 08:23:59 +0000 (+0000) Subject: MFH: add testcase for bug #30833 X-Git-Tag: php-5.0.5RC1~442 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce6102342fa6b01cf1d367b7d56f1c43c50798e4;p=php MFH: add testcase for bug #30833 --- diff --git a/ext/standard/tests/array/bug30833.phpt b/ext/standard/tests/array/bug30833.phpt new file mode 100644 index 0000000000..61701a532f --- /dev/null +++ b/ext/standard/tests/array/bug30833.phpt @@ -0,0 +1,35 @@ +--TEST-- +bug #30833 (array_count_values() modifying input array) +--FILE-- + +--EXPECT-- +array(2) { + [0]=> + string(3) "abc" + [1]=> + string(4) "0000" +} +array(2) { + ["abc"]=> + int(1) + [0]=> + int(1) +} +array(2) { + [0]=> + string(3) "abc" + [1]=> + string(4) "0000" +} +Done