From 43063892062803ffe3dcaf8ef300fdd32b6bc257 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Fri, 15 May 2009 17:02:34 +0000 Subject: [PATCH] * Roll it back then. I wonder if defaulting it to SORT_REGULAR would work well and I think allowing user-supplied comparator should make more sense when it comes to objects. --- ext/standard/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/array.c b/ext/standard/array.c index b34ea9ba44..57f15946ce 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2889,7 +2889,7 @@ PHP_FUNCTION(array_unique) }; struct bucketindex *arTmp, *cmpdata, *lastkept; unsigned int i; - long sort_type = PHP_SORT_REGULAR; + long sort_type = PHP_SORT_STRING; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &array, &sort_type) == FAILURE) { return; -- 2.50.1