We could do more....

This commit is contained in:
Xinchen Hui 2015-01-15 04:29:01 -05:00
parent 2823c9dafb
commit 11f615b311

View file

@ -3229,6 +3229,9 @@ PHP_FUNCTION(array_unique)
for (idx = 0; idx < i; idx++) {
cmpdata = &arTmp[idx];
if (Z_TYPE(cmpdata->b.val) != IS_UNDEF) {
#if 1
continue;
#else
if (lastkept == NULL) {
lastkept = cmpdata;
continue;
@ -3244,6 +3247,7 @@ PHP_FUNCTION(array_unique)
p = &cmpdata->b;
}
}
#endif
} else {
p = &cmpdata->b;
}