Re[2]: [PEAR] destructor in PEAR

From: Date: Sun, 27 Jan 2002 09:54:00 +0000
Subject: Re[2]: [PEAR] destructor in PEAR
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-740@lists.php.net to get a copy of this message
Hi! i use 4.1.1, I know that. I just don't know if destructors are called automaticaly from eny parent class or i have to make function _test() like this function _test() { $this->_PEAR(); echo "destruct"; } -- bye, Uros mailto:uros.gruber@sir-mag.com Sunday, January 27, 2002, 10:20:42 AM, you wrote: MJ> On Sun, 27 Jan 2002 01:34:02 +0100, Uros Gruber wrote: >>If I extends PEAR class (Example) >> >>class test extends PEAR { >> function test () { >> $this->PEAR(); >> echo "construct"; >> } >> >> function _test() { >> echo "destruct"; >> } >>} >>$t =& new test; >> >>Is this normal that in this example is called >> >>first constructor of PEAR, than test counstructor and then test >>destructor. What about PEAR destructor. Is it OK that way, because I >>don't know much about object programing. MJ> What version of PHP do you use? Do you know that you can't output MJ> anything in a destructor in versions of PHP < 4.1? MJ> - Martin

« previous php.pear.general (#740) next »