|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-25 14:48 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Feb 01 15:00:01 2026 UTC |
Description: ------------ When a private method is called outside the target, the application die. Reproduce code: --------------- class t { private function test1() { echo "method test1\n"; } public function test2() { echo "method test2\n"; } public function test3() { $this->test1(); } } $p = new t(); $p->test3(); //call test3 method and print message $p->test1(); //not call test1 (die application) $p->test2(); //not call test2 and not execute more commands echo "check\n"; //not print "check" Expected result: ---------------- method teste1 method teste2 check Actual result: -------------- method test1