|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-28 11:02 UTC] lsmith@php.net
[2012-08-28 11:41 UTC] lstrojny@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: lstrojny
[2012-08-28 12:01 UTC] lsmith@php.net
[2012-08-28 12:12 UTC] laruence@php.net
[2012-08-28 12:14 UTC] lstrojny@php.net
[2012-08-28 12:14 UTC] lstrojny@php.net
-Status: Assigned
+Status: Feedback
[2012-08-28 12:27 UTC] laruence@php.net
[2012-09-21 08:13 UTC] lstrojny@php.net
-Status: Feedback
+Status: Closed
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 15:00:02 2025 UTC |
Description: ------------ Defining a private method in an extending class that matches the name of a private method in a parent class with a different signature currently triggers an E_STRICT. As the extending class shouldn't see the parent private methods, there is no reason to trigger an E_STRICT in this case. Test script: --------------- <?php class A { private function foo($bar) { } } class B extends A { private function foo() { } } Expected result: ---------------- no E_STRICT error Actual result: -------------- PHP Strict standards: Declaration of B::foo() should be compatible with A::foo($bar) in /Users/lsmith/htdocs/foo.php on line 15 Strict standards: Declaration of B::foo() should be compatible with A::foo($bar) in /Users/lsmith/htdocs/foo.php on line 15