From 372c9d2ee6e3bcc9c5e19d97390c14a2ea7ace1a Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:09:29 +0200 Subject: [PATCH] fix: check both CLI and value Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- apps/settings/lib/SetupChecks/PhpOpcacheSetup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php b/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php index 254c4155df8..35422078c82 100644 --- a/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php +++ b/apps/settings/lib/SetupChecks/PhpOpcacheSetup.php @@ -115,7 +115,7 @@ class PhpOpcacheSetup implements ISetupCheck { public function run(): SetupResult { // Skip OPcache checks if running from CLI - if (PHP_SAPI === 'cli') { + if (OC::$CLI && !$this->iniGetWrapper->getBool('opcache.enable_cli')) { return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.')); }