- added "memory_limit" >= 128MB as new requirement to /setup page

This commit is contained in:
Mark Friedrich
2018-07-18 21:40:22 +02:00
parent 577edfc928
commit b42c6af65f
2 changed files with 11 additions and 0 deletions

View File

@@ -540,6 +540,13 @@ class Setup extends Controller {
'check' => function_exists('exec') == $f3->get('REQUIREMENTS.PHP.EXEC'),
'tooltip' => 'exec() funktion. Check "disable_functions" in php.ini'
],
'memoryLimit' => [
'label' => 'memory_limit',
'required' => $f3->get('REQUIREMENTS.PHP.MEMORY_LIMIT'),
'version' => ini_get('memory_limit'),
'check' => ini_get('memory_limit') >= $f3->get('REQUIREMENTS.PHP.MEMORY_LIMIT'),
'tooltip' => 'PHP default = 64MB.'
],
'maxInputVars' => [
'label' => 'max_input_vars',
'required' => $f3->get('REQUIREMENTS.PHP.MAX_INPUT_VARS'),

View File

@@ -36,6 +36,10 @@ EXEC = 1
; max execution time for requests (seconds)
MAX_EXECUTION_TIME = 10
; max memory limit
; some requests e.g. build indexes on /setup page require more RAM
MEMORY_LIMIT = 128M
; max variable size for $_GET, $_POST and $_COOKIE
; this is required for importing larger maps
; http://php.net/manual/en/info.configuration.php