From 6527a454c67c259c0f21b82cc43f5fa8d957ce2a Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Wed, 16 Jun 2004 16:26:12 +0000 Subject: [PATCH] * don't register object on destructors list if it does not define its own emulated destructor --- pear/PEAR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1