|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-22 03:26 UTC] laruence@php.net
-Status: Open
+Status: Feedback
[2012-09-22 03:26 UTC] laruence@php.net
[2012-09-24 07:30 UTC] goetas at lignano dot it
-Status: Feedback
+Status: Open
[2012-09-24 07:30 UTC] goetas at lignano dot it
[2012-09-24 14:56 UTC] nikic@php.net
[2012-09-24 15:32 UTC] goetas at lignano dot it
[2012-09-25 03:06 UTC] laruence@php.net
[2012-09-25 06:58 UTC] goetas at lignano dot it
[2016-01-16 12:49 UTC] danack@php.net
-Status: Open
+Status: Feedback
[2016-01-16 12:49 UTC] danack@php.net
[2016-01-24 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ There is some "erros" with overwritten private methods in different classes. The bug is linked to #62956, but the bug seems to be solved only for classes defined inside the same file. Test script: --------------- Example 1 test.php ---- class ClassA { public function fun(){ $this->myMethod(5); } private function myMethod($param){ } } class ClassB extends ClassA { public function fun(){ $this->myMethod(); } private function myMethod(){ } } --- Example 2 ---- test.php ---- class ClassA { public function fun(){ $this->myMethod(5); } private function myMethod($param){ } } include 'test2.php' --- test2.php ---- class ClassB extends ClassA { public function fun(){ $this->myMethod(); } private function myMethod(){ } } --- Expected result: ---------------- The two examples should work both Actual result: -------------- The second example rises this error: Strict Standards: Declaration of ClassB::myMethod() should be compatible with that of ClassA::myMethod() in /mnt/md1/data/www/test2.php on line 0