Re: destructor in PEAR
| From: | Tomas V.V.Cox | Date: | Sun, 27 Jan 2002 17:39:28 +0000 |
| Subject: | Re: destructor in PEAR | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-743@lists.php.net to get a copy of this message | ||
Uros Gruber wrote:
>
> 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";
> }
>
The method $this->PEAR() will setup the destructor automatically and it
will call all the "destructor" methods of your class and its parents
when the script finishes.
Tomas V.V.Cox