Skip to content

Commit 6527a45

Browse files
committed
* don't register object on destructors list if it does not define its
own emulated destructor
1 parent c9908cf commit 6527a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pear/PEAR.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function PEAR($error_class = null)
159159
if ($error_class !== null) {
160160
$this->_error_class = $error_class;
161161
}
162-
while ($classname) {
162+
while ($classname && strcasecmp($classname, "pear")) {
163163
$destructor = "_$classname";
164164
if (method_exists($this, $destructor)) {
165165
global $_PEAR_destructor_object_list;

0 commit comments

Comments
 (0)