#27699 [Opn->Bgs]: Private method error

From: Date: Thu, 25 Mar 2004 19:48:45 +0000
Subject: #27699 [Opn->Bgs]: Private method error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56840@lists.php.net to get a copy of this message
 ID:               27699
 Updated by:       derick@php.net
 Reported By:      eyglys at yahoo dot com dot br
-Status:           Open
+Status:           Bogus
 Bug Type:         Zend Engine 2 problem
 Operating System: Windows
 PHP Version:      5.0.0RC1
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2004-03-25 12:39:46] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27699&edit=1


Thread (2 messages)

« previous php.bugs (#56840) next »