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

index 4ed84a267b5468969a32d2dc40c64fdabdfce4c2..bd3512f8b65547505d7ee864943ee5898f19bf68 100644 (file)
@@ -2839,7 +2839,7 @@ PHP_FUNCTION(array_unique)
        };
        struct bucketindex *arTmp, *cmpdata, *lastkept;
        unsigned int i;
-       long sort_type = SORT_REGULAR;
+       long sort_type = SORT_STRING;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|l", &array, &sort_type) == FAILURE) {
                return;