Re: RFC: Remove "destructor" from PEAR class
| From: | Alexey Borzov | Date: | Wed, 16 Jun 2004 18:08:46 +0000 |
| Subject: | Re: RFC: Remove "destructor" from PEAR class | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30808@lists.php.net to get a copy of this message | ||
Hi,
Lukas Smith wrote:
::sigh:: Lukas, you use _MDB_Common() method, not _PEAR(). I didn't suggest getting rid of emulated destructors, they are obviously useful. I suggested getting rid of one specific _PEAR() method. Can you please look up the PEAR.php file at last?Actually I use it in MDB to clean up any open transactions.This is actually a bug, probably the oldest one in PEAR! The PEAR class should not register itself this way. The intention behind having the "destructor" method there was to allow people to call the superclass destructor, in case it would contain something useful for all objects one day. Fixed in CVS.Thanks, I applied your fix to my local PEAR.php and the script worked OK, without dieing of memory limit. Of course, now we have _PEAR() method that is not used anywhere at all. ;]