#38148 [Opn->Bgs]: inheritance compatibility standards break *

From: Date: Wed, 19 Jul 2006 19:28:34 +0000
Subject: #38148 [Opn->Bgs]: inheritance compatibility standards break *
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99636@lists.php.net to get a copy of this message
ID: 38148 Updated by: helly@php.net Reported By: kennyt@php.net -Status: Open +Status: Bogus Bug Type: Scripting Engine problem PHP Version: 6CVS-2006-07-19 (CVS) 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 This is PHP 5 now. Previous Comments: ------------------------------------------------------------------------ [2006-07-19 18:12:13] kennyt@php.net Description: ------------ the new "fatal: decl. of Child::foo() is incompatible with Parent::foo()" errors cause lots of applications to break. Reproduce code: --------------- <?php ini_set('display_errors', 1); class Paren { function foo() {} } class Chil extends Paren { function foo($f, $x, $y) {} } Actual result: -------------- Fatal error: Declaration of Chil::foo() must be compatible with that of Paren::foo() in /.../php5/test.php on line 10 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38148&edit=1

« previous php.bugs (#99636) next »