]> granicus.if.org Git - php/commitdiff
* Fix bug #47370 (BC breakage of array_unique())
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 12 Feb 2009 18:29:15 +0000 (18:29 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 12 Feb 2009 18:29:15 +0000 (18:29 +0000)
ext/standard/array.c

index dfed171119f07af13191976de41b57adedac306b..513193f9fdc3bcb23df78572b1b5f0046042548c 100644 (file)
@@ -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;