From aa704c618d24699a6eb03fdcc375ab2d698ef76f Mon Sep 17 00:00:00 2001 From: rurban Date: Tue, 19 Oct 2004 17:34:55 +0000 Subject: [PATCH] <4.3 fix git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4054 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/ErrorManager.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/ErrorManager.php b/lib/ErrorManager.php index 088244927..79eb43a23 100644 --- a/lib/ErrorManager.php +++ b/lib/ErrorManager.php @@ -1,4 +1,4 @@ -
Fatal Error:
\n"; if (defined('DEBUG') and (DEBUG & _DEBUG_TRACE)) { echo "error_reporting=",error_reporting(),"\n
"; - $error->printSimpleTrace(debug_backtrace()); + if (function_exists("debug_backtrace")) // >= 4.3.0 + $error->printSimpleTrace(debug_backtrace()); } $this->_die($error); } @@ -271,7 +272,8 @@ class ErrorManager //echo "postponed errors: "; if (defined('DEBUG') and (DEBUG & _DEBUG_TRACE)) { echo "error_reporting=",error_reporting(),"\n"; - $error->printSimpleTrace(debug_backtrace()); + if (function_exists("debug_backtrace")) // >= 4.3.0 + $error->printSimpleTrace(debug_backtrace()); } $error->printXML(); } @@ -595,6 +597,9 @@ if (!isset($GLOBALS['ErrorManager'])) { } // $Log: not supported by cvs2svn $ +// Revision 1.37 2004/10/14 19:23:58 rurban +// remove debugging prints +// // Revision 1.36 2004/10/12 15:35:43 rurban // avoid Php Notice header // -- 2.45.0