cellog Tue Apr 25 02:41:03 2006 UTC
Modified files:
/pear-core PEAR.php package-PEAR.xml package2.xml
Log:
* fix Bug #6788: backtrace memory leak
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR.php?r1=1.100&r2=1.101&diff_format=u
Index: pear-core/PEAR.php
diff -u pear-core/PEAR.php:1.100 pear-core/PEAR.php:1.101
--- pear-core/PEAR.php:1.100 Sat Mar 25 20:52:24 2006
+++ pear-core/PEAR.php Tue Apr 25 02:41:03 2006
@@ -20,7 +20,7 @@
* @author Greg Beaver <cellog@xxxxxxx>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
- * @version CVS: $Id: PEAR.php,v 1.100 2006/03/25 20:52:24 cellog Exp $
+ * @version CVS: $Id: PEAR.php,v 1.101 2006/04/25 02:41:03 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -864,9 +864,10 @@
$this->code = $code;
$this->mode = $mode;
$this->userinfo = $userinfo;
- if (function_exists("debug_backtrace")) {
- if (!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) {
- $this->backtrace = debug_backtrace();
+ if (!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) {
+ $this->backtrace = debug_backtrace();
+ if (isset($this->backtrace[0]) &&
isset($this->backtrace[0]['object'])) {
+ unset($this->backtrace[0]['object']);
}
}
if ($mode & PEAR_ERROR_CALLBACK) {
http://cvs.php.net/viewcvs.cgi/pear-core/package-PEAR.xml?r1=1.366&r2=1.367&diff_format=u
Index: pear-core/package-PEAR.xml
diff -u pear-core/package-PEAR.xml:1.366 pear-core/package-PEAR.xml:1.367
--- pear-core/package-PEAR.xml:1.366 Thu Apr 13 00:50:40 2006
+++ pear-core/package-PEAR.xml Tue Apr 25 02:41:03 2006
@@ -84,6 +84,7 @@
<state>alpha</state>
<notes>
Minor feature addition/bugfixes
+ * fix Bug #6788: backtrace memory leak
* fix Bug #6931: pear upgrade PEAR-alpha tries to upgrade to 1.4.0a12
* fix Bug #7021: Everything must be within <dir name="/">
* fix Bug #7196: PEAR crashes when using autoload_prepend_file
http://cvs.php.net/viewcvs.cgi/pear-core/package2.xml?r1=1.260&r2=1.261&diff_format=u
Index: pear-core/package2.xml
diff -u pear-core/package2.xml:1.260 pear-core/package2.xml:1.261
--- pear-core/package2.xml:1.260 Thu Apr 13 00:50:40 2006
+++ pear-core/package2.xml Tue Apr 25 02:41:03 2006
@@ -89,6 +89,7 @@
<license uri="http://www.php.net/license">PHP License</license>
<notes>
Minor feature addition/bugfixes
+ * fix Bug #6788: backtrace memory leak
* fix Bug #6931: pear upgrade PEAR-alpha tries to upgrade to 1.4.0a12
* fix Bug #7021: Everything must be within <dir name="/">
* fix Bug #7196: PEAR crashes when using autoload_prepend_file
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|