Changeset 21412 for branches/version-2_11-dev/data/class/SC_Initial.php
- Timestamp:
- 2012/01/17 16:34:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Initial.php
r21400 r21412 38 38 39 39 /** EC-CUBEのバージョン */ 40 define('ECCUBE_VERSION', '2.11. 5-dev');40 define('ECCUBE_VERSION', '2.11.4-dev'); 41 41 } 42 42 … … 52 52 function init() { 53 53 $this->requireInitialConfig(); 54 $this->defineDSN(); // requireInitialConfig メソッドより後で実行 54 $this->defineDSN(); 55 $this->setErrorReporting(); 55 56 $this->defineDirectoryIndex(); 56 $this->defineErrorType(); // XXX 多分、もっと後で大丈夫57 $this->defineConstants(); // defineDirectoryIndex メソッドより後で実行58 $this->complementConstants(); // defineConstants メソッドより後で実行59 $this->phpconfigInit(); // defineConstants メソッドより後で実行60 $this->createCacheDir(); // defineConstants メソッドより後で実行57 $this->defineErrorType(); 58 $this->defineConstants(); 59 $this->complementConstants(); 60 $this->phpconfigInit(); 61 $this->createCacheDir(); 61 62 $this->stripslashesDeepGpc(); 62 $this->resetSuperglobalsRequest(); // stripslashesDeepGpc メソッドより後で実行63 $this->resetSuperglobalsRequest(); 63 64 } 64 65 … … 94 95 95 96 /** 96 * @deprecated 97 * エラーレベル設定を行う. 98 * 99 * ・推奨値 100 * 開発時 - E_ALL 101 * 運用時 - E_ALL & ~E_NOTICE 102 * 103 * @access protected 104 * @return void 97 105 */ 98 106 function setErrorReporting() { … … 113 121 */ 114 122 function phpconfigInit() { 115 // E_DEPRECATED 定数 (for PHP < 5.3)116 // TODO バージョン互換処理に統合したい。117 $this->defineIfNotDefined('E_DEPRECATED', 8192);118 119 // エラーレベル設定120 // 開発時は E_ALL を推奨121 error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);122 123 123 ini_set('display_errors', '1'); 124 124 ini_set('html_errors', '1'); … … 127 127 ini_set('auto_detect_line_endings', 1); 128 128 ini_set('default_charset', CHAR_CODE); 129 ini_set('mbstring.internal_encoding', CHAR_CODE); 129 130 ini_set('mbstring.detect_order', 'auto'); 130 131 ini_set('mbstring.substitute_character', 'none'); … … 135 136 136 137 mb_internal_encoding(CHAR_CODE); // mb_language() より後で 138 // TODO 上の「ini_set('mbstring.internal_encoding', CHAR_CODE);」を削除できないか検討 139 // TODO .htaccess の mbstring.internal_encoding を削除できないか検討 137 140 138 141 ini_set('arg_separator.output', '&');
Note: See TracChangeset
for help on using the changeset viewer.