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