diff options
Diffstat (limited to 'pear/PEAR.php')
-rw-r--r-- | pear/PEAR.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |