#27073 [Fbk->NoF]: Strange behaviour after extending interface Iterator wo adding anything new
| From: | sniper@php.net | Date: | Mon, 02 Feb 2004 08:27:48 +0000 |
| Subject: | #27073 [Fbk->NoF]: Strange behaviour after extending interface Iterator wo adding anything new | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54283@lists.php.net to get a copy of this message | ||
ID: 27073
Updated by: sniper@php.net
Reported By: andrey@php.net
-Status: Feedback
+Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: linux
PHP Version: 5CVS-2004-01-28 (dev)
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2004-01-28 17:50:04] helly@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2004-01-28 08:51:04] andrey@php.net
Description:
------------
See the code attached :
class FubarOK has no problem implementing Iterator. interface
NewIterator just extends Iterator and adds nothing, and here comes the
fun - an error message when FubarProblem tries to implement
NewIterator.
Reproduce code:
---------------
<?php
class FubarOk implements Iterator {
public function next(){}
public function key(){}
public function current(){}
public function hasMore(){}
public function rewind(){}
}
interface NewIterator extends Iterator {
}
class FubarProblem implements NewIterator {
public function next(){}
public function key(){}
public function current(){}
public function hasMore(){}
public function rewind(){}
}
?>
Actual result:
--------------
PHP Fatal error: Class FubarProblem must implement interface
Traversable as
part of either Iterator or IteratorAggregate in Unknown on line 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27073&edit=1