mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 03:42:18 +09:00
debugPrint 함수 오류 수정. 정확하지는 않으나 debug_backtrack()시 결과값의 문제로 판단
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4446 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
89567afb56
commit
3e6ccf3fcd
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@
|
|||
function debugPrint($buff = null, $display_line = true) {
|
||||
$debug_file = _XE_PATH_."files/_debug_message.php";
|
||||
$bt = debug_backtrace();
|
||||
$first = array_shift($bt);
|
||||
if(is_array($bt)) $first = array_shift($bt);
|
||||
$buff = sprintf("[%s:%d]\n%s\n", array_pop(explode(DIRECTORY_SEPARATOR, $first["file"])), $first["line"], print_r($buff,true));
|
||||
|
||||
if($display_line) $buff = "\n====================================\n".$buff."------------------------------------\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue