Browse Source

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

no need to MFH - the bug existed only in HEAD
PHP-5.1
Antony Dovgal 21 years ago
parent
commit
a32c1f9eee
  1. 2
      Zend/zend_hash.c

2
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;

Loading…
Cancel
Save