> So it seems the results are sorted, but the keys aren't reassigned...
If I track the source, I find the zend_hash_sort function in zend_hash.c has changed between 407 and 408: 407: if (renumber) { p = ht->pListHead; i=0; while (p != NULL) { p->nKeyLength = 0; p->h = i++; p = p->pListNext; } ht->nNextFreeElement = i; zend_hash_rehash(ht); } 408: if (renumber) { p = ht->pListHead; i=0; while (p != NULL) { p->nKeyLength = 0; ; p = p->pListNext; } ht->nNextFreeElement = i; zend_hash_rehash(ht); } If I restore the p->h = i++; line, everything works again... Cheerio, Marc. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]