Skip to content

Commit

Permalink
Merge pull request #9117 from kenjis/add-directives-to-phpini-check
Browse files Browse the repository at this point in the history
feat: add directives to `phpini:check` command
  • Loading branch information
kenjis committed Aug 19, 2024
2 parents 32a11f9 + aa6df4e commit 510bf8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion system/Commands/Utilities/PhpIniCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class PhpIniCheck extends BaseCommand
*
* @var string
*/
protected $description = 'Check your php.ini values.';
protected $description = 'Check your php.ini values in production environment.';

/**
* The Command's usage
Expand Down
3 changes: 3 additions & 0 deletions system/Security/CheckPhpIni.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ public static function checkIni(): array
'log_errors' => [],
'error_log' => [],
'default_charset' => ['recommended' => 'UTF-8'],
'max_execution_time' => ['remark' => 'The default is 30.'],
'memory_limit' => ['remark' => '> post_max_size'],
'post_max_size' => ['remark' => '> upload_max_filesize'],
'upload_max_filesize' => ['remark' => '< post_max_size'],
'max_input_vars' => ['remark' => 'The default is 1000.'],
'request_order' => ['recommended' => 'GP'],
'variables_order' => ['recommended' => 'GPCS'],
'date.timezone' => ['recommended' => 'UTC'],
Expand All @@ -135,6 +137,7 @@ public static function checkIni(): array
'opcache.enable_cli' => [],
'opcache.jit' => [],
'opcache.jit_buffer_size' => [],
'zend.assertions' => ['recommended' => '-1'],
];

$output = [];
Expand Down

0 comments on commit 510bf8b

Please sign in to comment.