- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_HandleError.php
r22592 r22796 30 30 * @version $Id$ 31 31 */ 32 class SC_Helper_HandleError 33 { 32 class SC_Helper_HandleError { 34 33 35 34 /** … … 38 37 * @return void 39 38 */ 40 static function load() 41 { 39 static function load() { 42 40 // E_DEPRECATED 定数 (for PHP < 5.3) 43 41 // TODO バージョン互換処理に統合したい。 … … 85 83 * E_WARNING, E_USER_WARNING が発生した場合、true を返す 86 84 */ 87 static function handle_warning($errno, $errstr, $errfile, $errline) 88 { 85 static function handle_warning($errno, $errstr, $errfile, $errline) { 89 86 // error_reporting 設定に含まれていないエラーコードは処理しない 90 87 if (!(error_reporting() & $errno)) { … … 129 126 * エラーが捕捉されない場合は, 出力バッファリングの内容を返す 130 127 */ 131 static function &_fatal_error_handler(&$buffer) 132 { 133 if (preg_match('/<b>(Fatal error)<\/b>: +(.+) in <b>(.+)<\/b> on line <b>(\d+)<\/b><br \/>/i', $buffer, $matches)) { 128 static function &_fatal_error_handler(&$buffer) { 129 if (preg_match('/<b>(Fatal error)<\/b>: +(.+) in <b>(.+)<\/b> on line <b>(\d+)<\/b><br \/>/i', $buffer, $matches = array())) { 134 130 $message = "$matches[1]: $matches[2] on [$matches[3]($matches[4])]"; 135 131 GC_Utils_Ex::gfPrintLog($message, ERROR_LOG_REALFILE, true); … … 154 150 * @return void 155 151 */ 156 static function handle_error() 157 { 152 static function handle_error() { 158 153 // 最後のエラーを確実に捉えるため、先頭で呼び出す。 159 154 $arrError = error_get_last(); … … 192 187 * @return void 193 188 */ 194 static function displaySystemError($errstr = null) 195 { 189 static function displaySystemError($errstr = null) { 196 190 ob_clean(); 197 191
Note: See TracChangeset
for help on using the changeset viewer.