From: Stig Bakken Date: Wed, 16 Jun 2004 16:26:12 +0000 (+0000) Subject: * don't register object on destructors list if it does not define its X-Git-Tag: php-5.0.0~183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6527a454c67c259c0f21b82cc43f5fa8d957ce2a;p=php * don't register object on destructors list if it does not define its own emulated destructor --- diff --git a/pear/PEAR.php b/pear/PEAR.php index 8b4f75de39..a42b825f6a 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -159,7 +159,7 @@ class PEAR if ($error_class !== null) { $this->_error_class = $error_class; } - while ($classname) { + while ($classname && strcasecmp($classname, "pear")) { $destructor = "_$classname"; if (method_exists($this, $destructor)) { global $_PEAR_destructor_object_list;