cvs: pear-core(PEAR_1_3) / PEAR.php
| From: | Greg Beaver | Date: | Fri, 22 Oct 2004 05:45:23 +0000 |
| Subject: | cvs: pear-core(PEAR_1_3) / PEAR.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1116@lists.php.net to get a copy of this message | ||
cellog Fri Oct 22 01:45:23 2004 EDT
Modified files: (Branch: PEAR_1_3)
/pear-core PEAR.php
Log:
fix #1630 debug_backtrace() is a big killer
using PEAR::getStaticProperty('PEAR_Error', 'skiptrace')
you can disable debug_backtrace() for all PEAR_Errors
http://cvs.php.net/diff.php/pear-core/PEAR.php?r1=1.82.2.2&r2=1.82.2.3&ty=u
Index: pear-core/PEAR.php
diff -u pear-core/PEAR.php:1.82.2.2 pear-core/PEAR.php:1.82.2.3
--- pear-core/PEAR.php:1.82.2.2 Wed Oct 20 00:24:23 2004
+++ pear-core/PEAR.php Fri Oct 22 01:45:23 2004
@@ -18,7 +18,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +--------------------------------------------------------------------+
//
-// $Id: PEAR.php,v 1.82.2.2 2004/10/20 04:24:23 cellog Exp $
+// $Id: PEAR.php,v 1.82.2.3 2004/10/22 05:45:23 cellog Exp $
//
define('PEAR_ERROR_RETURN', 1);
@@ -814,7 +814,9 @@
$this->mode = $mode;
$this->userinfo = $userinfo;
if (function_exists("debug_backtrace")) {
- $this->backtrace = debug_backtrace();
+ if (@!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) {
+ $this->backtrace = debug_backtrace();
+ }
}
if ($mode & PEAR_ERROR_CALLBACK) {
$this->level = E_USER_NOTICE;