Re: [PHP-DEV] SplHeap->key()

2008-11-19 Thread Tobias Schlitt
Hi, On 11/19/2008 11:38 AM David Coallier wrote: >> 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, wo

Re: [PHP-DEV] SplHeap->key()

2008-11-19 Thread David Coallier
> > 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 p

[PHP-DEV] SplHeap->key()

2008-11-19 Thread Tobias Schlitt
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