Date: 10/26/99
- Next message: anand_palaniswamy <email protected>: "[PHP-DEV] Bug #2611: gcc-2.95.1's libstdc++'s alloc.h conflicts with php's alloc.h"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Reply: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 26 Oct 1999, Andi Gutmans wrote:
> if "renumber" is true, you ask the hash_sort() function to sort by value
> and discard the previous keys, assigning new keys according to the new
> order. As a result of the keys changing hash_sort() calls hash_rehash()
> which assigns all of the new key/value pairs to their new bucket which is
> calculated according to the new key.
So, if the keys aren't changing then it's not necessary to call
zend_hash_rehash()?
-Andrei
* Change is the only constant. *
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: anand_palaniswamy <email protected>: "[PHP-DEV] Bug #2611: gcc-2.95.1's libstdc++'s alloc.h conflicts with php's alloc.h"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Reply: Andi Gutmans: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

