Re: destructor in PEAR

From: Date: Sun, 27 Jan 2002 09:20:42 +0000
Subject: Re: destructor in PEAR
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-739@lists.php.net to get a copy of this message
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. What version of PHP do you use? Do you know that you can't output anything in a destructor in versions of PHP < 4.1? - Martin -- Martin Jansen, <mail@martin-jansen.de> http://www.martin-jansen.de/

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