mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
fix bug #33382 (array_reverse() fails after *sort())
no need to MFH - the bug existed only in HEAD
This commit is contained in:
parent
f47c78487b
commit
a32c1f9eee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user