Re: SplHeap->key()
| From: | David Coallier | Date: | Wed, 19 Nov 2008 10:38:41 +0000 |
| Subject: | Re: SplHeap->key() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41995@lists.php.net to get a copy of this message | ||
>
> 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.
>
I'd say this is a bug as well, would you mind opening a bug and
assigning it to me please?
Etienne/Marcus, do you mind if I go ahead?
--
Slan,
David