Date: 10/27/99
- Next message: evan715 <email protected>: "[PHP-DEV] PHP 4.0 Bug #2613: Compile dies on url.h"
- Previous message: chris <email protected>: "[PHP-DEV] PHP 4.0 Bug #2612: Session Variables only work in IE"
- In reply to: Andrei Zmievski: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 03:32 PM 10/26/99 -0500, Andrei Zmievski wrote:
>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()?
Nope. (ou'd pass renumber=0 to zend_hash_sort())
Andi
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- 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: evan715 <email protected>: "[PHP-DEV] PHP 4.0 Bug #2613: Compile dies on url.h"
- Previous message: chris <email protected>: "[PHP-DEV] PHP 4.0 Bug #2612: Session Variables only work in IE"
- In reply to: Andrei Zmievski: "Re: [PHP-DEV] Re: zend_hash_sort_ex()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

