From 64a31beb6a4448beaf0f3cd89ab92539f19eafd3 Mon Sep 17 00:00:00 2001 From: Martin Jansen Date: Wed, 25 Sep 2002 17:36:24 +0000 Subject: [PATCH] * Fix bug #19269. This patch makes popErrorHandling() pop the first _two_ elements from the error handler stack to prevent un-necessary memory consumption. # Patch by: jrust (at) rustyparts (dot) com --- pear/PEAR.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pear/PEAR.php b/pear/PEAR.php index 1541390db3..169e3ea779 100644 --- a/pear/PEAR.php +++ b/pear/PEAR.php @@ -583,6 +583,7 @@ class PEAR $stack = &$GLOBALS['_PEAR_error_handler_stack']; array_pop($stack); list($mode, $options) = $stack[sizeof($stack) - 1]; + array_pop($stack); if (isset($this)) { $this->setErrorHandling($mode, $options); } else { -- 2.50.1