|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-03-04 09:39 UTC] oxygenus at gmail dot com
[2014-03-04 11:26 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2014-03-04 11:26 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 23:00:01 2025 UTC |
Description: ------------ Works on Windows 8 x64 with PHP 5.3.1 and PHP 5.5.9. Fails on Linux with PHP 5.3.1 and 5.3.3. I do not have a Linux available with a newer PHP version. Test script: --------------- <?php interface iInherit { public function inheritMe(); } abstract class InheritBase implements iInherit { abstract public function inheritMe(); } class Child extends InheritBase { public function inheritMe() { } } Expected result: ---------------- Expecting a successfull compilation. Actual result: -------------- PHP Fatal error: Can't inherit abstract function iInherit::inheritMe() (previously declared abstract in InheritBase) in test.php on line 8