Changeset 18806


Ignore:
Timestamp:
2010/09/17 13:33:20 (11 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:18805
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

html/admin/require.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Fadmin%2Frequire.php
html/handle_error.php 18500@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_4-dev%2Fhtml%2Fhandle_error.php
html/require.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Frequire.php
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20100917043318-0tabp11gm7myhq3v
bzr:revno:
2289
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-09-17 13:33:18.170000076 +0900
bzr:user-agent:
bzr2.2.0+bzr-svn1.0.3
svn:original-date:
2010-09-17T04:33:18.170000Z
Message:

PHPエラーが発生した場合にも, data/logs/site.log へエラー出力するように修正(#567)

Location:
branches/version-2_5-dev/html
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/html/admin/require.php

    r18743 r18806  
    2626define('ADMIN_FUNCTION', true); 
    2727 
     28require_once HTML_PATH . 'define.php'; 
    2829require_once HTML_PATH . 'handle_error.php'; 
    29 require_once HTML_PATH . 'define.php'; 
    3030 
    3131require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 
  • branches/version-2_5-dev/html/handle_error.php

    r18796 r18806  
    2121 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
    2222 */ 
    23  
    2423// エラー捕捉用の出力バッファリング 
    2524ob_start('_fatal_error_handler'); 
     
    4746            $admin = "?admin"; 
    4847        } 
     48        error_log("FATAL Error: $matches[3]:$matches[4] $matches[2]\n", 3, 
     49                  realpath(dirname(__FILE__) . "/" . HTML2DATA_DIR . "logs/site.log")); 
    4950        header("Location: " . SITE_URL . "error.php" . $admin); 
    5051        exit; 
     
    7475    case E_USER_ERROR: 
    7576        ob_end_clean(); 
    76         error_log("FATAL Error($errno) $errfile:$errline $errstr", 3, LOG_PATH); 
     77        error_log("FATAL Error($errno) $errfile:$errline $errstr", 3, realpath(dirname(__FILE__) . "/" . HTML2DATA_DIR . "logs/site.log")); 
    7778 
    7879        $admin = ""; 
  • branches/version-2_5-dev/html/require.php

    r18743 r18806  
    2525define("HTML_PATH", rtrim(realpath(rtrim(realpath(dirname(__FILE__)), '/\\') . '/'), '/\\') . '/'); 
    2626 
     27require_once HTML_PATH . 'define.php'; 
    2728require_once HTML_PATH . 'handle_error.php'; 
    28 require_once HTML_PATH . 'define.php'; 
    2929define('FRONT_FUNCTION_PC_SITE', true); 
    3030require_once HTML_PATH . HTML2DATA_DIR . 'require_base.php'; 
Note: See TracChangeset for help on using the changeset viewer.