/spb3/sinc/lib/function_error.php
sitePHPbasic 디버그 모드 : WARNING
[2] file(http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_error.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Line : 89 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 file() 함수사용, line(89), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => file(http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_error.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 89 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => file(http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_error.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 89 [4] => Array ( [_GET] => Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [_SERVER] => Array ( [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/) [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5 [HTTP_ACCEPT_ENCODING] => br,gzip [HTTP_HOST] => kamprs.or.kr [HTTP_CONNECTION] => Keep-Alive [PATH] => /sbin:/usr/sbin:/bin:/usr/bin [SERVER_SIGNATURE] =>
Apache/2.2.3 (CentOS) Server at kamprs.or.kr Port 80
[SERVER_SOFTWARE] => Apache/2.2.3 (CentOS) [SERVER_NAME] => kamprs.or.kr [SERVER_ADDR] => 61.14.208.190 [SERVER_PORT] => 80 [REMOTE_ADDR] => 18.204.2.231 [DOCUMENT_ROOT] => /wecan/cc/cc.sdong.kr [SERVER_ADMIN] => root@localhost [SCRIPT_FILENAME] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [REMOTE_PORT] => 36224 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_error.php [REQUEST_URI] => /spb3/sadmin/util/svn/spb3_diff.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_error.php [SCRIPT_NAME] => /spb3/sadmin/util/svn/spb3_diff.php [PHP_SELF] => /spb3/sadmin/util/svn/spb3_diff.php [REQUEST_TIME_FLOAT] => 1634530084.117 [REQUEST_TIME] => 1634530084 ) [GLOBALS] => Array *RECURSION* [SITE] => Array ( [database] => [th] => spb3_ [uh] => /spb3/ [home] => /spb3/ [name] => sitePHPbasic [company] => 뉴21커뮤니티(주) [webmaster] => spb@sdong.kr [hp] => 16449501 [version] => 3.2.0 [debug] => 2 [home_path] => /wecan/cc/cc.sdong.kr/ [spb3_path] => /wecan/cc/cc.sdong.kr/spb3/ [html_path] => /wecan/cc/cc.sdong.kr/spb3/sinc/skin/ [lib_path] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/ ) [_SESSION] => Array ( ) [spb_error_checktime_time] => class_spb_checktime Object ( [vars] => Array ( ) ) [thisPath] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/ [file_source] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [http_response_header] => Array ( [0] => HTTP/1.1 404 Not Found [1] => Date: Mon, 18 Oct 2021 04:08:04 GMT [2] => Server: Apache/2.2.3 (CentOS) [3] => Content-Length: 301 [4] => Connection: close [5] => Content-Type: text/html; charset=iso-8859-1 ) ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 89 [function] => file [args] => Array ( [0] => http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_error.php ) ) ) [key] => 1 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 89 [function] => file [args] => Array ( [0] => http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_error.php ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] file(): Filename cannot be empty
Line : 119 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 file() 함수사용, line(119), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => file(): Filename cannot be empty [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 119 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => file(): Filename cannot be empty [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 119 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 119 [function] => file [args] => Array ( [0] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => 0 ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => 0 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [oindex] => 1 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [oindex] => 1 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [oindex] => 2 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [oindex] => 2 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [oindex] => 3 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [oindex] => 3 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [oindex] => 4 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [oindex] => 4 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => /* [oindex] => 5 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => /* ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => /* [oindex] => 5 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => trigger_error("여기서멈춤", E_USER_ERROR); [oindex] => 6 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => trigger_error("여기서멈춤", E_USER_ERROR); ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => trigger_error("여기서멈춤", E_USER_ERROR); [oindex] => 6 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => [oindex] => 7 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => [oindex] => 7 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => */ [oindex] => 8 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => */ ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => */ [oindex] => 8 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [oindex] => 9 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => function spb_error_handler($errno, $errstr, $errfile, $errline) { ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [oindex] => 9 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // was suppressed with a '@' [oindex] => 10 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // was suppressed with a '@' ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => // was suppressed with a '@' [oindex] => 10 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => if (error_reporting() == 0) return true; [oindex] => 11 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => if (error_reporting() == 0) return true; ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => if (error_reporting() == 0) return true; [oindex] => 11 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => [oindex] => 12 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => [oindex] => 12 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => switch ($errno) { [oindex] => 13 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => switch ($errno) { ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => switch ($errno) { [oindex] => 13 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => case E_STRICT: [oindex] => 14 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => case E_STRICT: ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => case E_STRICT: [oindex] => 14 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => case E_NOTICE: [oindex] => 15 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => case E_NOTICE: ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => case E_NOTICE: [oindex] => 15 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => //echo "NOTICE [$errno] $errstr
\n"; [oindex] => 16 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => //echo "NOTICE [$errno] $errstr
\n"; ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => //echo "NOTICE [$errno] $errstr
\n"; [oindex] => 16 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => //echo "Line : $errline (file:$errfile)
\n"; [oindex] => 17 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => //echo "Line : $errline (file:$errfile)
\n"; ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break; [97] => default: [98] => echo "미정2의 에러: [$errno] $errstr
\n"; [99] => echo "Line : $errline (file:$errfile)
\n"; [100] => //print_r(get_defined_vars()); [101] => break; [102] => } [103] => [104] => /* Don't execute PHP internal error handler */ [105] => return true; [106] => } [107] => [108] => //error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); [109] => set_error_handler("spb_error_handler"); [110] => [111] => //trigger_error("USER_ERROR 테스트", E_USER_ERROR); [112] => [113] => [114] => // 추가 debug모드 [115] => $spb_error_checktime_time = new class_spb_checktime(); [116] => function spb_error_checktime($end = false){ [117] => global $spb_error_checktime_time; [118] => if(!$end){ [119] => //$spb_error_checktime_time = new class_spb_checktime(); [120] => [121] => $spb_error_checktime_time->start('총실행시간','총실행시간'); [122] => register_shutdown_function('spb_error_checktime','true'); [123] => } [124] => else { [125] => $spb_error_checktime_time->stop('총실행시간'); [126] => echo "
"; [127] => echo " echo "document.getElementById('array_tree_element').style.display == 'block' ? 'none' : 'block';\"\n"; [129] => echo "name=\"array_tree_link\" href=\"javascript: void(0);\"> SitePHPbasic FULL Debug Mode [sadmin] [myadmin]\n"; [130] => echo "
"; [131] => [132] => echo '
';

                                            [133] => 		$spb_error_checktime_time->echoall();

                                            [134] => 

                                            [135] => 		// include 파일들

                                            [136] => 		$included_files = get_included_files();

                                            [137] => 		foreach ($included_files as $filepath) {

                                            [138] => 			if(strpos($filepath,$_SERVER['DOCUMENT_ROOT'])!==false) {

                                            [139] => 				$url = substr($filepath,strlen($_SERVER['DOCUMENT_ROOT']));

                                            [140] => 				$md5 = md5_file($filepath);

                                            [141] => 				$md5_path = urlencode($url);

                                            [142] => 				echo "include file : $url";

                                            [143] => 				if('/spb3/'==substr($url,0,6))

                                            [144] => 					echo "  ";

                                            [145] => 				// 마지막 수정시간

                                            [146] => 				if(strtotime("today") 					echo "     Today ",date("H:i:s",filemtime($filepath)),"";

                                            [148] => 				else

                                            [149] => 					echo "     ",date("Y.m.d H:i:s",filemtime($filepath)),"";

                                            [150] => 				echo "
"; [151] => } [152] => else echo "include file : $filename
\n"; [153] => } [154] => [155] => //echo "db_arraysql = ";print_r($GLOBALS['db_arraysql']); [156] => if(count($_GET)) { echo "\$_GET = ";print_r($_GET); }; [157] => if(count($_POST)) { echo "\$_POST = ";print_r($_POST); }; [158] => if(count($_COOKIE)) { echo "\$_COOKIE = ";print_r($_COOKIE); }; [159] => echo '
'; [160] => [161] => if(isset($GLOBALS['dbinfo'])) { [162] => $i=10000; [163] => $k = 'dbinfo';$v=$GLOBALS['dbinfo']; [164] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [166] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [167] => echo "
"; [168] => echo "
";

                                            [169] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [170] => 			echo ";
"; [171] => echo "
"; [172] => } [173] => [174] => if(isset($GLOBALS['list'])) { [175] => $i=10001; [176] => $k = 'list';$v=$GLOBALS['list']; [177] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [179] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [180] => echo "
"; [181] => echo "
";

                                            [182] => 			echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [183] => 			echo ";
"; [184] => echo "
"; [185] => } [186] => [187] => // 방금위에것 [188] => unset($GLOBALS['_GET']); [189] => unset($GLOBALS['_POST']); [190] => unset($GLOBALS['_COOKIE']); [191] => unset($GLOBALS['dbinfo']); [192] => unset($GLOBALS['list']); [193] => // 반복되고 필요없는것 [194] => unset($GLOBALS['HTTP_ENV_VARS']); [195] => unset($GLOBALS['HTTP_GET_VARS']); [196] => unset($GLOBALS['HTTP_POST_VARS']); [197] => unset($GLOBALS['HTTP_POST_FILES']); [198] => unset($GLOBALS['HTTP_COOKIE_VARS']); [199] => unset($GLOBALS['HTTP_SERVER_VARS']); [200] => unset($GLOBALS['HTTP_SESSION_VARS']); [201] => unset($GLOBALS['_SESSION']['PMA_Config']); [202] => unset($GLOBALS['_SESSION']['PMA_Theme_Manager']); [203] => unset($GLOBALS['_SESSION']['PMA_Theme']); [204] => unset($GLOBALS['PMA_Theme']); [205] => unset($GLOBALS['spb_error_checktime_time']); [206] => [207] => $i=0; [208] => $echoHtml = ''; [209] => foreach($GLOBALS as $k => $v) { [210] => if($k=='GLOBALS') continue; [211] => if(is_array($v) or is_object($v)) { [212] => $i++; [213] => echo " echo "document.getElementById('array_tree_element_$i').style.display == 'block' ? 'none' : 'block';\"\n"; [215] => echo "name=\"array_tree_link_$i\" href=\"javascript: void(0);\">$".htmlspecialchars($k)." = array(".count($v)."개)
\n"; [216] => echo "
"; [217] => echo "
";

                                            [218] => 				echo "\$$k = ";echo htmlspecialchars(var_export($v,1));

                                            [219] => 				echo ";
"; [220] => echo "
"; [221] => } [222] => else { [223] => $echoHtml .= "
";

                                            [224] => 

                                            [225] => 				$echoHtml .= "\n\$$k = ";

                                            [226] => 				$echoHtml .= htmlspecialchars(var_export($v,1));

                                            [227] => 				$echoHtml .= ";
"; [228] => } [229] => } [230] => echo $echoHtml; [231] => echo '
'; [232] => echo "
"; [233] => } [234] => } [235] => if(defined('GET_DEBUG_2') and GET_DEBUG_2) spb_error_checktime(); //Caling our function once! [236] => ?> ) [new] => [ovalue] => //echo "Line : $errline (file:$errfile)
\n"; [oindex] => 17 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_error.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_error.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => // $Id: function_error.php 19 2010-09-11 13:44:31Z sitehis $ [2] => // 09/02/06 박선민 GET_DEBUG_2 기능 추가 [3] => // 09/03/02 박선민 E_ERROR와 E_USER_ERROR 구분 처리 [4] => // 09/05/09 박선민 bugfix 226L GET_DEBUG_2가 false였을때 버그 [5] => /* [6] => trigger_error("여기서멈춤", E_USER_ERROR); [7] => [8] => */ [9] => function spb_error_handler($errno, $errstr, $errfile, $errline) { [10] => // was suppressed with a '@' [11] => if (error_reporting() == 0) return true; [12] => [13] => switch ($errno) { [14] => case E_STRICT: [15] => case E_NOTICE: [16] => //echo "NOTICE [$errno] $errstr
\n"; [17] => //echo "Line : $errline (file:$errfile)
\n"; [18] => return true; [19] => break; [20] => case E_ERROR; [21] => echo "SitePHPbasic 디버그 모드
\n"; [22] => echo "심각한에러발생 [$errno]
\n"; [23] => echo "내용: $errstr
\n"; [24] => echo "Line : $errline (file:$errfile)"; [25] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [26] => echo "
"; [27] => echo "디버그 추적(debug_backtrace)
\n"; [28] => $arr = debug_backtrace(); [29] => if(is_array($arr)) { [30] => foreach($arr as $key => $value) { [31] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [32] => } [33] => } [34] => //print_r($arr); [35] => echo "
";

                                            [36] => 			echo "



사용변수들 ...
\n"; [37] => echo "\$_GET = ";print_r($_GET); [38] => echo "\$_POST = ";print_r($_POST); [39] => echo "\$_COOKIE = ";print_r($_COOKIE); [40] => unset($arr); [41] => //print_r(get_defined_vars()); [42] => //print_r($GLOBALS); [43] => echo "
"; [44] => exit(1); [45] => break; [46] => case E_USER_ERROR: // 256 [47] => echo "SitePHPbasic 디버그 모드
\n"; [48] => echo "사용자 에러 [$errno]
\n"; [49] => echo "내용: $errstr
\n"; [50] => echo "Line : $errline (file:$errfile)"; [51] => echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; [52] => echo "
"; [53] => echo "디버그 추적(debug_backtrace)
\n"; [54] => $arr = debug_backtrace(); [55] => if(is_array($arr)) { [56] => foreach($arr as $key => $value) { [57] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [58] => } [59] => } [60] => //print_r($arr); [61] => echo "
";

                                            [62] => 			echo "



사용변수들 ...
\n"; [63] => unset($arr); [64] => //print_r(get_defined_vars()); [65] => //print_r($GLOBALS); [66] => spb_error_checktime(true); [67] => echo "
"; [68] => exit(1); [69] => break; [70] => case E_WARNING: [71] => case E_USER_WARNING: // 512 [72] => echo "sitePHPbasic 디버그 모드 : WARNING
[$errno] $errstr
\n"; [73] => echo "Line : $errline (file:$errfile)
\n"; [74] => echo "- 디버그 추적(debug_backtrace)
\n"; [75] => $arr = debug_backtrace(); [76] => if(is_array($arr)) { [77] => foreach($arr as $key => $value) { [78] => echo "#$key $value[function]() 함수사용, line($value[line]), $value[file]
\n"; [79] => } [80] => } [81] => //print_r($arr); [82] => echo "
";

                                            [83] => 			echo "



사용변수들 ...
\n"; [84] => echo "\$_GET = ";print_r($_GET); [85] => echo "\$_POST = ";print_r($_POST); [86] => echo "\$_COOKIE = ";print_r($_COOKIE); [87] => print_r(get_defined_vars()); [88] => echo "
"; [89] => [90] => break; [91] => case E_USER_NOTICE: //1024 [92] => echo "NOTICE [$errno] $errstr
\n"; [93] => echo "Line : $errline (file:$errfile)
\n"; [94] => break; [95] => case E_DEPRECATED: // 8192 [96] => break;