From: <var...@us...> - 2014-10-03 14:26:33
|
Revision: 9174 http://sourceforge.net/p/phpwiki/code/9174 Author: vargenau Date: 2014-10-03 14:26:30 +0000 (Fri, 03 Oct 2014) Log Message: ----------- function debug_print_backtrace exists Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2014-10-03 14:24:21 UTC (rev 9173) +++ trunk/lib/stdlib.php 2014-10-03 14:26:30 UTC (rev 9174) @@ -2057,19 +2057,8 @@ function printSimpleTrace($bt) { - //print_r($bt); echo "\nTraceback:\n"; - if (function_exists('debug_print_backtrace')) { // >= 5 - debug_print_backtrace(); - } else { - foreach ($bt as $i => $elem) { - if (!array_key_exists('file', $elem)) { - continue; - } - //echo join(" ",array_values($elem)),"\n"; - echo " ", $elem['file'], ':', $elem['line'], " ", $elem['function'], "\n"; - } - } + debug_print_backtrace(); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |