Changeset 4578 for trunk/core/errorhandler.core.php
- Timestamp:
- 08/15/10 18:45:12 (22 months ago)
- File:
-
- 1 edited
-
trunk/core/errorhandler.core.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/errorhandler.core.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 158 155 { 159 156 # SMARTY ERRORS are thrown by trigger_error() - so they bubble up as E_USER_ERROR 160 # soin order to handle smarty errors with a seperated error display157 # and in order to handle smarty errors with a seperated error display 161 158 # we need to detect, if an E_USER_ERROR is incoming from SMARTY or from a template_c file (extension tpl.php) 162 159 if( (mb_strpos(mb_strtolower($errorfile),'smarty') == true) or (mb_strpos(mb_strtolower($errorfile),'tpl.php') == true) ) … … 459 456 } 460 457 461 $backtrace_string .= '<tr><td><strong>File: </strong></td><td>' . $backtrace[$i]['file'] . '</td></tr>'; 462 $backtrace_string .= '<tr><td><strong>Line: </strong></td><td>' . $backtrace[$i]['line'] . '</td></tr>'; 458 if(isset($backtrace[$i]['file'])) 459 { 460 $backtrace_string .= '<tr><td><strong>File: </strong></td><td>' . $backtrace[$i]['file'] . '</td></tr>'; 461 $backtrace_string .= '<tr><td><strong>Line: </strong></td><td>' . $backtrace[$i]['line'] . '</td></tr>'; 462 } 463 463 464 464 # spacer … … 473 473 * formatBacktraceArgument 474 474 * 475 * performs a type check on an backtrace argument and formats it nicely475 * Performs a type check on the backtrace argument and beautifies it. 476 476 * 477 477 * This formater is based on comments for debug-backtrace in the php manual … … 507 507 case 'string': 508 508 $args .= '<span>string</span> '; 509 $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64));510 509 if((mb_strlen($backtraceArgument) > 64)) 511 510 { 511 $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64)); 512 512 $backtraceArgument . '...'; 513 513 }
Note: See TracChangeset
for help on using the changeset viewer.
