]> 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:57:55 +0000 (18:57 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 12 Feb 2009 18:57:55 +0000 (18:57 +0000)
ext/standard/array.c

index 4337fd3dc6f624374193a55052dbd5f4e115172a..858a9fc9c0ffcc59c224af6051f114e25e69fc37 100644 (file)
@@ -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;