From: Martin Jansen Date: Wed, 25 Sep 2002 17:36:24 +0000 (+0000) Subject: * Fix bug #19269. X-Git-Tag: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64a31beb6a4448beaf0f3cd89ab92539f19eafd3;p=php * 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 --- 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 {