#41109 [Opn->Csd]: recursiveiterator.inc says "implements" Iterator instead of "extends"

From: Date: Tue, 17 Apr 2007 06:34:08 +0000
Subject: #41109 [Opn->Csd]: recursiveiterator.inc says "implements" Iterator instead of "extends"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111581@lists.php.net to get a copy of this message
ID: 41109 Updated by: helly@php.net Reported By: diogo86 at gmail dot com -Status: Open +Status: Closed Bug Type: SPL related Operating System: * PHP Version: 5.2.1 Assigned To: helly New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-04-17 02:10:22] diogo86 at gmail dot com Description: ------------ The interface RecursiveIterator "implements" Iterator, where the syntax requires it to "extends". Reproduce code: --------------- interface RecursiveIterator implements Iterator { /** @return whether the current element has children */ function hasChildren(); /** @return the sub iterator for the current element * @note The returned object must implement RecursiveIterator. */ function getChildren(); } Expected result: ---------------- interface RecursiveIterator extends Iterator { /** @return whether the current element has children */ function hasChildren(); /** @return the sub iterator for the current element * @note The returned object must implement RecursiveIterator. */ function getChildren(); } Actual result: -------------- The interface RecursiveIterator at ext/spl/internals/recursiveiterator.inc is using the wrong syntax "implements" instead of "extends", just like the OuterIterator correctly does for example. It works anyway but also affects the documentation generated by doxygen. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41109&edit=1

« previous php.bugs (#111581) next »