From: daniel dot gorski at develnet dot org Operating system: Linux PHP version: 5.3CVS-2007-11-05 (CVS) PHP Bug Type: Scripting Engine problem Bug description: Interface implementation / inheritence not possible in abstract classes
Description: ------------ PHP 5.3.0-dev (cli) (built: Nov 5 2007 16:42:56) from todays CVS HEAD. The implementation of interfaces in concrete abstract classes and their inheritence is not possible: Reproduce code: --------------- <?php interface A { function foo(); } abstract class B implements A { abstract public function foo(); } class C extends B { public function foo() { echo 'works'; } } $o = new C(); $o->foo(); ?> Expected result: ---------------- Echoing "works" Actual result: -------------- Fatal error: Can't inherit abstract function A::foo() (previously declared abstract in B) in ... -- Edit bug report at http://bugs.php.net/?id=43200&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43200&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43200&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43200&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43200&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43200&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43200&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43200&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43200&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43200&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43200&r=support Expected behavior: http://bugs.php.net/fix.php?id=43200&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43200&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43200&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43200&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43200&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43200&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43200&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43200&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43200&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43200&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43200&r=mysqlcfg