Skip to content

Commit 510bf8b

Browse files
authored
Merge pull request #9117 from kenjis/add-directives-to-phpini-check
feat: add directives to `phpini:check` command
2 parents 32a11f9 + aa6df4e commit 510bf8b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

system/Commands/Utilities/PhpIniCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class PhpIniCheck extends BaseCommand
4141
*
4242
* @var string
4343
*/
44-
protected $description = 'Check your php.ini values.';
44+
protected $description = 'Check your php.ini values in production environment.';
4545

4646
/**
4747
* The Command's usage

system/Security/CheckPhpIni.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ public static function checkIni(): array
124124
'log_errors' => [],
125125
'error_log' => [],
126126
'default_charset' => ['recommended' => 'UTF-8'],
127+
'max_execution_time' => ['remark' => 'The default is 30.'],
127128
'memory_limit' => ['remark' => '> post_max_size'],
128129
'post_max_size' => ['remark' => '> upload_max_filesize'],
129130
'upload_max_filesize' => ['remark' => '< post_max_size'],
131+
'max_input_vars' => ['remark' => 'The default is 1000.'],
130132
'request_order' => ['recommended' => 'GP'],
131133
'variables_order' => ['recommended' => 'GPCS'],
132134
'date.timezone' => ['recommended' => 'UTC'],
@@ -135,6 +137,7 @@ public static function checkIni(): array
135137
'opcache.enable_cli' => [],
136138
'opcache.jit' => [],
137139
'opcache.jit_buffer_size' => [],
140+
'zend.assertions' => ['recommended' => '-1'],
138141
];
139142

140143
$output = [];

0 commit comments

Comments
 (0)