logo       

cvs: php4 /pear PEAR.php: msg#00574

php.cvs.pear

Subject: cvs: php4 /pear PEAR.php

mj Wed Sep 25 13:36:24 2002 EDT

Modified files:
/php4/pear PEAR.php
Log:
* 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


Index: php4/pear/PEAR.php
diff -u php4/pear/PEAR.php:1.47 php4/pear/PEAR.php:1.48
--- php4/pear/PEAR.php:1.47 Sun Jul 21 03:04:45 2002
+++ php4/pear/PEAR.php Wed Sep 25 13:36:24 2002
@@ -18,7 +18,7 @@
// | Tomas V.V.Cox <cox@xxxxxxxxxxx> |
// +----------------------------------------------------------------------+
//
-// $Id: PEAR.php,v 1.47 2002/07/21 07:04:45 ssb Exp $
+// $Id: PEAR.php,v 1.48 2002/09/25 17:36:24 mj Exp $
//

define('PEAR_ERROR_RETURN', 1);
@@ -583,6 +583,7 @@
$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 {



--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise