php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27699 Private method error
Submitted: 2004-03-25 12:39 UTC Modified: 2004-03-25 14:48 UTC
From: eyglys at yahoo dot com dot br Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.0RC1 OS: Windows
Private report: No CVE-ID: None
 [2004-03-25 12:39 UTC] eyglys at yahoo dot com dot br
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-25 14:48 UTC] derick@php.net
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

Turn on full error reporting, this is just like it works.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 06:01:31 2024 UTC