ID:               41109
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to