From fcb243f6e70f8d71c2e32796defca0532d9d21d4 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Thu, 14 Feb 2008 13:50:36 +0000 Subject: [PATCH] New test --- ext/standard/tests/array/bug42838.phpt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ext/standard/tests/array/bug42838.phpt diff --git a/ext/standard/tests/array/bug42838.phpt b/ext/standard/tests/array/bug42838.phpt new file mode 100644 index 0000000000..1f895f31e0 --- /dev/null +++ b/ext/standard/tests/array/bug42838.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug#42838 - Wrong results in array_diff_uassoc +--FILE-- + $b)? 1:-1; +} + +$array1 = array("a" => "green", "b" => "Brown", 'c' => 'blue', 0 => 'red'); +$array2 = array("a" => "green", "b" => "Brown", 'c' => 'blue', 0 => 'red'); + +$result = array_diff_uassoc($array1, $array2, "key_compare_func"); +print_r($result); + +?> +--EXPECT-- +Array +( +) \ No newline at end of file -- 2.40.0