fix bug #33382 (array_reverse() fails after *sort())

no need to MFH - the bug existed only in HEAD
This commit is contained in:
Antony Dovgal 2005-06-17 10:50:15 +00:00
parent f47c78487b
commit a32c1f9eee

View File

@ -1145,7 +1145,7 @@ ZEND_API int zend_hash_sort(HashTable *ht, sort_func_t sort_func,
arTmp[j]->pListLast = arTmp[j-1];
arTmp[j]->pListNext = arTmp[j+1];
}
arTmp[j]->pListLast = ht->pListTail;
arTmp[j]->pListLast = arTmp[j-1];
arTmp[j]->pListNext = NULL;
} else {
arTmp[0]->pListNext = NULL;