]> granicus.if.org Git - php/commitdiff
* Fix bug #19269.
authorMartin Jansen <mj@php.net>
Wed, 25 Sep 2002 17:36:24 +0000 (17:36 +0000)
committerMartin Jansen <mj@php.net>
Wed, 25 Sep 2002 17:36:24 +0000 (17:36 +0000)
    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

index 1541390db393a41ab3da5ad1e551e9ba54ea4a8f..169e3ea77971783fdf95373e7430d17699a083fc 100644 (file)
@@ -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 {