summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-06-17 10:50:15 +0000
committerAntony Dovgal <tony2001@php.net>2005-06-17 10:50:15 +0000
commita32c1f9eeee932e6d1ab95e34b93580dfff0b237 (patch)
tree6a4be150eca691a9a7be3c11ede1fa04e5be2557
parentf47c78487bda814ccb1de09fe44fe9a6b4082c30 (diff)
downloadphp-git-a32c1f9eeee932e6d1ab95e34b93580dfff0b237.tar.gz
fix bug #33382 (array_reverse() fails after *sort())
no need to MFH - the bug existed only in HEAD
-rw-r--r--Zend/zend_hash.c2
1 files changed, 1 insertions, 1 deletions
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;