From 6db49f953a3ac46da9387c2665f4739ce1c9df33 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Thu, 12 Feb 2009 18:29:15 +0000 Subject: [PATCH] * Fix bug #47370 (BC breakage of array_unique()) --- 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 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; -- 2.40.0