Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_HandleError.php

    r22592 r22796  
    3030 * @version $Id$ 
    3131 */ 
    32 class SC_Helper_HandleError  
    33 { 
     32class SC_Helper_HandleError { 
    3433 
    3534    /** 
     
    3837     * @return void 
    3938     */ 
    40     static function load() 
    41     { 
     39    static function load() { 
    4240        // E_DEPRECATED 定数 (for PHP < 5.3) 
    4341        // TODO バージョン互換処理に統合したい。 
     
    8583     *                      E_WARNING, E_USER_WARNING が発生した場合、true を返す 
    8684     */ 
    87     static function handle_warning($errno, $errstr, $errfile, $errline) 
    88     { 
     85    static function handle_warning($errno, $errstr, $errfile, $errline) { 
    8986        // error_reporting 設定に含まれていないエラーコードは処理しない 
    9087        if (!(error_reporting() & $errno)) { 
     
    129126     *                     エラーが捕捉されない場合は, 出力バッファリングの内容を返す 
    130127     */ 
    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())) { 
    134130            $message = "$matches[1]: $matches[2] on [$matches[3]($matches[4])]"; 
    135131            GC_Utils_Ex::gfPrintLog($message, ERROR_LOG_REALFILE, true); 
     
    154150     * @return void 
    155151     */ 
    156     static function handle_error() 
    157     { 
     152    static function handle_error() { 
    158153        // 最後のエラーを確実に捉えるため、先頭で呼び出す。 
    159154        $arrError = error_get_last(); 
     
    192187     * @return void 
    193188     */ 
    194     static function displaySystemError($errstr = null) 
    195     { 
     189    static function displaySystemError($errstr = null) { 
    196190        ob_clean(); 
    197191 
Note: See TracChangeset for help on using the changeset viewer.