Changeset 21180


Ignore:
Timestamp:
2011/08/11 01:20:36 (13 years ago)
Author:
Seasoft
Message:

#1433 (PHP Notice が発生する)

Location:
branches/version-2_11-dev
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/SC_Initial.php

    r21179 r21180  
    5353        $this->requireInitialConfig(); 
    5454        $this->defineDSN(); 
    55         $this->setErrorReporting(); 
    5655        $this->defineDirectoryIndex(); 
    5756        $this->defineErrorType(); 
     
    9190                    DB_TYPE . "://" . DB_USER . ":" . DB_PASSWORD . "@" 
    9291                    . DB_SERVER . ":" .DB_PORT . "/" . DB_NAME); 
    93         } 
    94     } 
    95  
    96     /** 
    97      * エラーレベル設定を行う. 
    98      * 
    99      * ・推奨値 
    100      *   開発時 - E_ALL 
    101      *   運用時 - E_ALL & ~E_NOTICE 
    102      * 
    103      * @access protected 
    104      * @return void 
    105      */ 
    106     function setErrorReporting() { 
    107         error_reporting(E_ALL & ~E_NOTICE); 
    108         // PHP 5.3.0対応 
    109         if (error_reporting() > 6143) { 
    110             error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); 
    11192        } 
    11293    } 
  • branches/version-2_11-dev/html/.htaccess

    r20116 r21180  
    1111 
    1212# デフォルトテンプレートの状態で 2M 近くになるため 
    13 php_value upload_max_filesize 5M 
     13php_value upload_max_filesize 15M 
    1414#php_value post_max_size 8M 
    1515php_flag register_globals off 
     16 
     17# E_ALL(30719) - E_NOTICE(8) - E_DEPRECATED(8192) 
     18php_value error_reporting 22519 
  • branches/version-2_11-dev/php.ini

    r20116 r21180  
    1414;post_max_size = 8M 
    1515register_globals = off 
     16error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED 
Note: See TracChangeset for help on using the changeset viewer.