From a32c1f9eeee932e6d1ab95e34b93580dfff0b237 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 17 Jun 2005 10:50:15 +0000 Subject: [PATCH] fix bug #33382 (array_reverse() fails after *sort()) no need to MFH - the bug existed only in HEAD --- Zend/zend_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index 346357d674..ec75fb6446 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -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; -- 2.40.0