Changeset 17954 for branches/comu-ver2/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php
- Timestamp:
- 2009/04/04 06:47:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php
r17934 r17954 102 102 $cnt = 1; 103 103 $img_cnt = 0; 104 $safe_mode = (boolean)ini_get('safe_mode'); 105 $max_execution_time 106 = is_numeric(ini_get('max_execution_time')) 107 ? intval(ini_get('max_execution_time')) 108 : intval(get_cfg_var('max_execution_time')) 109 ; 104 110 while (!feof($fp)) { 105 111 $arrCSV = fgetcsv($fp, ZIP_CSV_LINE_MAX); … … 129 135 // 暴走スレッドが残留する確率を軽減したタイムアウト防止のロジック 130 136 // TODO 動作が安定していれば、SC_Utils 辺りに移動したい。 131 if (! get_cfg_var('safe_mode')) {137 if (!$safe_mode) { 132 138 // タイムアウトをリセット 133 set_time_limit( (int)get_cfg_var('max_execution_time'));139 set_time_limit($max_execution_time); 134 140 } 135 141 }
Note: See TracChangeset
for help on using the changeset viewer.