From: Moriyoshi Koizumi Date: Thu, 12 Feb 2009 18:29:15 +0000 (+0000) Subject: * Fix bug #47370 (BC breakage of array_unique()) X-Git-Tag: php-5.4.0alpha1~191^2~4291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6db49f953a3ac46da9387c2665f4739ce1c9df33;p=php * Fix bug #47370 (BC breakage of array_unique()) --- diff --git a/ext/standard/array.c b/ext/standard/array.c index dfed171119..513193f9fd 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2924,7 +2924,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;