|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-15 12:44 UTC] sniper@php.net
[2005-07-15 13:57 UTC] jason at hybd dot net
[2005-07-15 14:13 UTC] wez@php.net
[2007-02-01 09:48 UTC] mail at rones dot de
[2009-01-28 13:54 UTC] lukasz dot wojciechowski at ngsoft dot pl
[2011-11-10 12:09 UTC] arkadiusz dot robinski at allegro dot pl
[2015-08-09 13:46 UTC] php at mcq8 dot be
[2015-08-09 21:54 UTC] requinix@php.net
-Status: Suspended
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: requinix
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ This is debateable if this is a bug or not. Personally, I don't regard it as a bug. Classes that implement >1 interface that share common methods raise fatal errors. Because of the abstract nature of interfaces, no error or warning should be rasied. I know PHP <> Java, but Java doesn't raise any errors, and PHP5's OO model is very close to Java's Reproduce code: --------------- interface FirstInterface { function execute(); } interface SecondInterface { function execute(); } class MyClass implements FirstInterface, SecondInterface { function execute() { echo "Hello World"; } } $obj = new MyClass(); $obj->execute(); Expected result: ---------------- Hello World Actual result: -------------- Can't inherit abstract function SecondInterface::execute()