diff options
-rw-r--r-- | ext/standard/array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 581e4beff7..4c049888be 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2246,12 +2246,12 @@ PHP_FUNCTION(array_unique) arTmp[i] = p; arTmp[i] = NULL; set_compare_func(SORT_REGULAR); - qsort((void *) arTmp, i, sizeof(Bucket *), array_data_compare); + qsort((void *) arTmp, i, sizeof(Bucket *), array_type_data_compare); /* go through the sorted array and delete duplicates from the copy */ lastkept = arTmp; for (cmpdata = arTmp + 1; *cmpdata; cmpdata++) { - if (array_data_compare(lastkept, cmpdata)) { + if (array_type_data_compare(lastkept, cmpdata)) { lastkept = cmpdata; } else { p = *cmpdata; |