From: Antony Dovgal Date: Wed, 13 Apr 2005 08:24:12 +0000 (+0000) Subject: MFH: add testcase for bug #30833 X-Git-Tag: php-4.4.0RC1~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e58545fde94504918277d2fb681d1f970323e8ea;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..ecf5f1f527 --- /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) + ["0000"]=> + int(1) +} +array(2) { + [0]=> + string(3) "abc" + [1]=> + string(4) "0000" +} +Done