|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-23 14:00 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 03:00:02 2025 UTC |
Description: ------------ When a base class implements an interface the base class is also threated as an interface. IT'S A CRITICAL BUG IN MY OPINION!!! Reproduce code: --------------- <?php error_reporting( E_ALL ); set_error_handler('errorReporting'); interface test { } class ParentClass implements test { private function foo() { } } class ChildClass extends ParentClass { //HERE WE GET AN STRICT ERROR BECAUSE OF THE PARAMS BUT THE FUNCTION IS NOT DEFINED IN THE INTERFACE OR ABSTRACT public function foo(array $content) { } } function errorReporting($errno, $errstr, $errfile, $errline) { echo($errstr); } ?> Expected result: ---------------- no erros Actual result: -------------- We get a strict error here