Doc #53268 [Opn->Csd]: ArrayIterator::count() return type "void" when should be "int"

From: Date: Tue, 09 Nov 2010 00:25:42 +0000
Subject: Doc #53268 [Opn->Csd]: ArrayIterator::count() return type "void" when should be "int"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5509@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53268&edit=1 ID: 53268 Updated by: frozenfire@php.net Reported by: tace at synacor dot com Summary: ArrayIterator::count() return type "void" when should be "int" -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: frozenfire Block user comment: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-11-09 01:25:18] frozenfire@php.net Automatic comment from SVN on behalf of frozenfire Revision: http://svn.php.net/viewvc/?view=revision&revision=305212 Log: Fixed return type and clarified return value, as per bug #53268. ------------------------------------------------------------------------ [2010-11-08 20:39:39] tace at synacor dot com Description: ------------ --- From manual page: http://www.php.net/arrayiterator.count and http://www.php.net/class.arrayiterator --- These pages define ArrayIterator::count() as: public void count ( void ) However, this method is from the Countable interface, which defines the return type as "int". Likewise on the http://www.php.net/arrayiterator.count page it lists in the "Returns" section: "The number." The prototype should be: public int count ( void ) Note: RecursiveArrayIterator, CachingIterator, and RecursiveCachingIterator have the same prototyping issue. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53268&edit=1

« previous php.doc.bugs (#5509) next »