|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-31 15:38 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 15:00:02 2025 UTC |
Description: ------------ I think there is a bug when you want to cover private method in child class, and run it by public inherited method. See example: Reproduce code: --------------- class Bar { private function shmoo() { print 'bar'; } public function exe() { $this->shmoo(); } } class FooBar extends Bar { //change to protected, and public see what happens private function shmoo() { print 'foobar'; } } $bar = new FooBar; $bar->exe(); Expected result: ---------------- foobar Actual result: -------------- bar