SplHeap->key()
| From: | Tobias Schlitt | Date: | Wed, 19 Nov 2008 10:23:34 +0000 |
| Subject: | SplHeap->key() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-41994@lists.php.net to get a copy of this message | ||
Hi!
I noticed that SplHeap returns the current element count of the heap
from key(). I think it should return count - 1 to reflect 0 indexing.
key won't be called outside of an iterator, so this makes sense.
Regards,
Toby
--
Tobias Schlitt - Zend Certification Member GPG Key: 0xC462BC14
a passion for php http://www.schlitt.info
Member of the eZ components project http://components.ez.no