cvs: pear-core(PEAR_1_3) /PEAR ErrorStack.php

From: Date: Fri, 22 Oct 2004 05:40:13 +0000
Subject: cvs: pear-core(PEAR_1_3) /PEAR ErrorStack.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1115@lists.php.net to get a copy of this message
cellog Fri Oct 22 01:40:13 2004 EDT Modified files: (Branch: PEAR_1_3) /pear-core/PEAR ErrorStack.php Log: fix #1702 no check for debug_backtrace http://cvs.php.net/diff.php/pear-core/PEAR/ErrorStack.php?r1=1.7&r2=1.7.2.1&ty=u Index: pear-core/PEAR/ErrorStack.php diff -u pear-core/PEAR/ErrorStack.php:1.7 pear-core/PEAR/ErrorStack.php:1.7.2.1 --- pear-core/PEAR/ErrorStack.php:1.7 Sat Jun 12 01:36:40 2004 +++ pear-core/PEAR/ErrorStack.php Fri Oct 22 01:40:13 2004 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: ErrorStack.php,v 1.7 2004/06/12 05:36:40 cellog Exp $ +// $Id: ErrorStack.php,v 1.7.2.1 2004/10/22 05:40:13 cellog Exp $ /** * Error Stack Implementation @@ -282,7 +282,9 @@ return $GLOBALS['_PEAR_ERRORSTACK_SINGLETON'][$package]; } if (!class_exists($stackClass)) { - $trace = debug_backtrace(); + if (function_exists('debug_backtrace')) { + $trace = debug_backtrace(); + } PEAR_ErrorStack::staticPush('PEAR_ErrorStack', PEAR_ERRORSTACK_ERR_NONCLASS, 'exception', array('stackclass' => $stackClass), 'stack class "%stackclass%" is not a valid class name (should be like PEAR_ErrorStack)', @@ -630,7 +632,9 @@ $s = &PEAR_ErrorStack::singleton($package); if ($s->_contextCallback) { if (!$backtrace) { - $backtrace = debug_backtrace(); + if (function_exists('debug_backtrace')) { + $backtrace = debug_backtrace(); + } } } return $s->push($code, $level, $params, $msg, $repackage, $backtrace);

« previous php.pear.core (#1115) next »