- Timestamp:
- 2012/03/04 04:20:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/error/LC_Page_Error_SystemError.php
r21514 r21582 92 92 */ 93 93 function sendResponse() { 94 $this->adminPage = SC_Utils_Ex::sfIsAdminFunction();94 $this->adminPage = GC_Utils_Ex::isAdminFunction(); 95 95 96 96 if ($this->adminPage) { … … 136 136 $errmsg .= "\n"; 137 137 138 // デバッグ用のメッセージが指定されている場合 139 if (!empty($this->arrDebugMsg)) { 140 $errmsg .= implode("\n\n", $this->arrDebugMsg) . "\n"; 141 } 142 138 143 // PEAR エラーを伴う場合 139 144 if (!is_null($this->pearResult)) { 140 145 $errmsg .= $this->pearResult->message . "\n\n"; 141 146 $errmsg .= $this->pearResult->userinfo . "\n\n"; 142 $errmsg .= SC_Utils_Ex::sfBacktraceToString($this->pearResult->backtrace);147 $errmsg .= GC_Utils_Ex::toStringBacktrace($this->pearResult->backtrace); 143 148 } 144 149 // (上に該当せず)バックトレーススタックが指定されている場合 145 150 else if (is_array($this->backtrace)) { 146 $errmsg .= SC_Utils_Ex::sfBacktraceToString($this->backtrace);151 $errmsg .= GC_Utils_Ex::toStringBacktrace($this->backtrace); 147 152 } 148 // (上に該当せず)バックトレースを生成できる環境(一般的には PHP 4 >= 4.3.0, PHP 5)の場合 149 else if (function_exists('debug_backtrace')) { 150 $backtrace = debug_backtrace(); 151 152 // バックトレースのうち handle_error 以前は通常不要と考えられるので削除 153 $cnt = 0; 154 $offset = 0; 155 foreach ($backtrace as $key => $arrLine) { 156 $cnt ++; 157 if (!isset($arrLine['file']) && $arrLine['function'] === 'handle_error') { 158 $offset = $cnt; 159 break; 160 } 161 } 162 if ($offset !== 0) { 163 $backtrace = array_slice($backtrace, $offset); 164 } 165 166 $errmsg .= SC_Utils_Ex::sfBacktraceToString($backtrace); 167 } 168 169 // デバッグ用のメッセージが指定されている場合 170 if (!empty($this->arrDebugMsg)) { 171 $errmsg .= implode("\n\n", $this->arrDebugMsg) . "\n"; 153 else { 154 $arrBacktrace = GC_Utils_Ex::getDebugBacktrace(); 155 $errmsg .= GC_Utils_Ex::toStringBacktrace($arrBacktrace); 172 156 } 173 157
Note: See TracChangeset
for help on using the changeset viewer.