From: diogo86 at gmail dot com Operating system: PHP version: 5.2.1 PHP Bug Type: SPL related Bug description: recursiveiterator.inc says "implements" Iterator instead of "extends"
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 bug report at http://bugs.php.net/?id=41109&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41109&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41109&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41109&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41109&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41109&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41109&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41109&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41109&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41109&r=support Expected behavior: http://bugs.php.net/fix.php?id=41109&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41109&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41109&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41109&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41109&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41109&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41109&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41109&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41109&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41109&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41109&r=mysqlcfg