From: Moriyoshi Koizumi Date: Fri, 15 May 2009 17:02:34 +0000 (+0000) Subject: * Roll it back then. I wonder if defaulting it to SORT_REGULAR would work well X-Git-Tag: php-5.4.0alpha1~191^2~3656 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43063892062803ffe3dcaf8ef300fdd32b6bc257;p=php * 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. --- 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;