#49033 [Opn->Bgs]: Class threaded as interface
| From: | derick@php.net | Date: | Thu, 23 Jul 2009 14:00:23 +0000 |
| Subject: | #49033 [Opn->Bgs]: Class threaded as interface | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140130@lists.php.net to get a copy of this message | ||
ID: 49033
Updated by: derick@php.net
Reported By: themastersleader at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: NVM
PHP Version: 5.3.0
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2009-07-23 12:21:39] themastersleader at hotmail dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49033&edit=1