|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-01 21:53 UTC] helly@php.net
[2012-02-02 22:02 UTC] lsmith@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 07:00:01 2025 UTC |
Description: ------------ Code given produces fatal error: Can't inherit abstract function A::foo() (previously declared abstract in B) in foo.php on line 20 Reproduce code: --------------- <?php interface A { public function foo($id); } abstract class B { abstract public function foo($id); } class C extends B { public function foo($id) { echo "foo\n"; } } class D extends C implements A {} var_dump(new D); ?> Expected result: ---------------- But is expected to run cleanly.