From: Moriyoshi Koizumi Date: Thu, 12 Feb 2009 18:57:55 +0000 (+0000) Subject: * MFH: Fix bug #47370 (BC breakage of array_unique()) X-Git-Tag: RELEASE_1_3_5~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=018ba64adab828608312a5e3dca23f234c6a093f;p=php * MFH: Fix bug #47370 (BC breakage of array_unique()) --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 4337fd3dc6..858a9fc9c0 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2697,7 +2697,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;