Re: RFC: Remove "destructor" from PEAR class
| From: | Alan Knowles | Date: | Thu, 17 Jun 2004 03:14:18 +0000 |
| Subject: | Re: RFC: Remove "destructor" from PEAR class | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30828@lists.php.net to get a copy of this message | ||
You dont fancy thinking about the debug_backtrace in PEAR_Error - it's seems a bit of a hog,
perhaps
if (ini_get('pear.disable_debug_backtrace')) {
...debug_backtrace....
}
may be a relatively harmless way to remove it..
Bug #1630
http://pear.php.net/bugs/bug.php?id=1630
Stig Bakken wrote:
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. - Stig On Wed, 16 Jun 2004 17:08:11 +0200, Lukas Smith <smith@backendmedia.com> wrote:-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.comAlexey Borzov wrote:as the "destructor". And when the constructor of the child class calls PEAR's constructor, it checks whether the class or any of the *parent* classes have a "destructor". Thus each class that extends PEAR, EVEN IF IT DOES NOT USE THE DESTRUCTOR FEATURE ITSELF, gets registered in PEAR's list of objects, preventing garbage collection. This creates a huge problem for long running scripts.shouldnt it be possible to just register the object if a destructor method is defined? regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07 -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php