Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72539 invoked from network); 19 Nov 2008 10:23:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2008 10:23:47 -0000 Authentication-Results: pb1.pair.com header.from=tobias@schlitt.info; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tobias@schlitt.info; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlitt.info from 85.214.110.30 cause and error) X-PHP-List-Original-Sender: tobias@schlitt.info X-Host-Fingerprint: 85.214.110.30 hartes-php.de Linux 2.6 Received: from [85.214.110.30] ([85.214.110.30:59957] helo=hartes-php.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/00-06451-C29E3294 for ; Wed, 19 Nov 2008 05:23:43 -0500 Received: (qmail 23584 invoked from network); 19 Nov 2008 10:23:37 -0000 Received: from p508c73cf.dip.t-dialin.net (HELO ?192.168.0.100?) (tobias@schlitt.info@80.140.115.207) by hartes-php.de with ESMTPA; 19 Nov 2008 10:23:37 -0000 Message-ID: <4923E926.8050901@schlitt.info> Date: Wed, 19 Nov 2008 11:23:34 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041124 Thunderbird/0.9 Mnenhy/0.6.0.104 MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.95.7 OpenPGP: id=C462BC14 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: SplHeap->key() From: tobias@schlitt.info (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 passion for php http://www.schlitt.info Member of the eZ components project http://components.ez.no