#29901 [NEW]: can't extend class that implements both IteratorAggregate and Iterator

From: Date: Mon, 30 Aug 2004 17:18:32 +0000
Subject: #29901 [NEW]: can't extend class that implements both IteratorAggregate and Iterator
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65466@lists.php.net to get a copy of this message
From: nad at datapro dot lv Operating system: Windows 2000 PHP version: 5.0.1 PHP Bug Type: Reproducible crash Bug description: can't extend class that implements both IteratorAggregate and Iterator Description: ------------ Fatal error: Class FooExtra could not implement interface IteratorAggregate in Unknown on line 0 Reproduce code: --------------- class Foo implements IteratorAggregate, Iterator { function rewind(){} function hasMore() {} function key() {} function current(){} function next() {} function valid() {} function getIterator() { return $this;} } class FooExtra extends Foo { function valid() {} } Actual result: -------------- Fatal error: Class FooExtra could not implement interface IteratorAggregate in Unknown on line 0 -- Edit bug report at http://bugs.php.net/?id=29901&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29901&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29901&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29901&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29901&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29901&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29901&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29901&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29901&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29901&r=support Expected behavior: http://bugs.php.net/fix.php?id=29901&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29901&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29901&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29901&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29901&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29901&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29901&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29901&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29901&r=float

« previous php.bugs (#65466) next »