Ignore:
Timestamp:
2009/07/12 18:49:45 (15 years ago)
Author:
AMUAMU
Message:

#515 の一部。PHP5.3.0にて定義された新しい非推奨関数使用エラーの表示抑制。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/SC_Initial.php

    r18088 r18185  
    103103    function setErrorReporting() { 
    104104        error_reporting(E_ALL & ~E_NOTICE); 
     105        // PHP 5.3.0対応 
     106        if (error_reporting() > 6143) { 
     107            error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_USER_DEPRECATED); 
     108        } 
    105109    } 
    106110 
     
    211215        if (defined("HTML_PATH")) { 
    212216            umask(0); 
    213             if (!file_exists(COMPILE_DIR)) { 
     217            if (!file_exists(COMPILE_DIR)) { 
    214218                mkdir(COMPILE_DIR); 
    215219            } 
Note: See TracChangeset for help on using the changeset viewer.