mirror of
https://github.com/php/php-src.git
synced 2025-01-15 16:24:37 +08:00
* Fix bug #47370 (BC breakage of array_unique())
This commit is contained in:
parent
e23ca993c7
commit
6db49f953a
@ -2924,7 +2924,7 @@ PHP_FUNCTION(array_unique)
|
|||||||
};
|
};
|
||||||
struct bucketindex *arTmp, *cmpdata, *lastkept;
|
struct bucketindex *arTmp, *cmpdata, *lastkept;
|
||||||
unsigned int i;
|
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) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &array, &sort_type) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user