summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2004-06-16 16:26:12 +0000
committerStig Bakken <ssb@php.net>2004-06-16 16:26:12 +0000
commit6527a454c67c259c0f21b82cc43f5fa8d957ce2a (patch)
treeb20d6d5a54ca2b3f2c06527d69e8c03ed42e0aa3 /pear
parentc9908cf81dd5eb25a7d7ef79756ce9006e156cfc (diff)
downloadphp-git-6527a454c67c259c0f21b82cc43f5fa8d957ce2a.tar.gz
* don't register object on destructors list if it does not define its
own emulated destructor
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR.php2
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;