#27699 [NEW]: Private method error

From: Date: Thu, 25 Mar 2004 17:39:46 +0000
Subject: #27699 [NEW]: Private method error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56833@lists.php.net to get a copy of this message
From:             eyglys at yahoo dot com dot br
Operating system: Windows
PHP version:      5.0.0RC1
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Private method error

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

-- 
Edit bug report at http://bugs.php.net/?id=27699&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27699&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27699&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27699&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27699&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27699&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27699&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27699&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27699&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27699&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27699&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27699&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27699&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27699&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27699&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27699&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27699&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27699&r=float


Thread (2 messages)

« previous php.bugs (#56833) next »