destructor in PEAR

From: Date: Sun, 27 Jan 2002 00:34:02 +0000
Subject: destructor in PEAR
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-738@lists.php.net to get a copy of this message
Hi! i have some question maybe it sounds very stupid. 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. -- bye, Uros mailto:uros.gruber@sir-mag.com

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