- added new requirement check for max_input_vars to /setup URL, closed #224

This commit is contained in:
Exodus4D
2016-07-04 21:49:34 +02:00
parent 347627db02
commit 3d2b6eb340
3 changed files with 24 additions and 1 deletions

View File

@@ -322,6 +322,20 @@ class Setup extends Controller {
'required' => 'installed',
'version' => (extension_loaded('curl') && function_exists('curl_version')) ? 'installed' : 'not installed',
'check' => (extension_loaded('curl') && function_exists('curl_version'))
],
'maxInputVars' => [
'label' => 'max_input_vars',
'required' => $f3->get('REQUIREMENTS.PHP.MAX_INPUT_VARS'),
'version' => ini_get('max_input_vars'),
'check' => ini_get('max_input_vars') >= $f3->get('REQUIREMENTS.PHP.MAX_INPUT_VARS'),
'tooltip' => 'PHP default = 1000. Increase it in order to import larger maps.'
],
'maxExecutionTime' => [
'label' => 'max_execution_time',
'required' => $f3->get('REQUIREMENTS.PHP.MAX_EXECUTION_TIME'),
'version' => ini_get('max_execution_time'),
'check' => ini_get('max_execution_time') >= $f3->get('REQUIREMENTS.PHP.MAX_EXECUTION_TIME'),
'tooltip' => 'PHP default = 30. Max execution time for PHP scripts.'
]
];

View File

@@ -17,6 +17,15 @@ VERSION = 5.6
; but needs to be additionally updated on CentOS or Red Hat systems
PCRE_VERSION = 8.02
; max execution time for requests
MAX_EXECUTION_TIME = 10
; max variable size for $_GET, $_POST and $_COOKIE
; this is required for importing larger maps
; http://php.net/manual/en/info.configuration.php
; PHP default = 1000
MAX_INPUT_VARS = 3000
[REQUIREMENTS.MYSQL]
; min MySQL Version
; newer "deviation" of MySQL like "MariaDB" > 10.1 are recommended

View File

@@ -95,7 +95,7 @@
<tr>
<td>Feature</td>
<td class="text-right col-md-3">required</td>
<td class="text-right col-md-3">installed</td>
<td class="text-right col-md-3">found</td>
<td class="text-right col-md-1"></td>
</tr>
</thead>