* Fix bug #47370 (BC breakage of array_unique())

This commit is contained in:
Moriyoshi Koizumi 2009-02-12 18:29:15 +00:00
parent e23ca993c7
commit 6db49f953a

View 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;