From: Felipe Pena Date: Thu, 14 Feb 2008 13:51:15 +0000 (+0000) Subject: New test X-Git-Tag: RELEASE_2_0_0a1~479 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3531b3ff5f52a68e5544d93b0573a858f5c484ca;p=php New test --- 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