summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorStig Venaas <venaas@php.net>2000-10-21 18:12:30 +0000
committerStig Venaas <venaas@php.net>2000-10-21 18:12:30 +0000
commit4edb21002828a42400341d352916f868d5e71359 (patch)
tree9ce8d72f6721b4c041980f0eba868a704ae0ad0b /ext/standard/array.c
parent508d1993ed58ae27ef76390ebaed6d68267b86ce (diff)
downloadphp-git-4edb21002828a42400341d352916f868d5e71359.tar.gz
Made array_unique use array_type_data_compare instead of array_data_compare
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c4
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;