-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(setupchecks): Skip checking for OPcache settings if running checks from CLI #46353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -114,6 +114,11 @@ protected function getOpcacheSetupRecommendations(): array { | |||||
| } | ||||||
|
|
||||||
| public function run(): SetupResult { | ||||||
| // Skip OPcache checks if running from CLI | ||||||
| if (PHP_SAPI === 'cli') { | ||||||
| return SetupResult::success($this->l10n->t('Checking from CLI, OPcache checks have been skipped.')); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure in how far the output style of
MichaIng marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| } | ||||||
|
|
||||||
| [$level,$recommendations] = $this->getOpcacheSetupRecommendations(); | ||||||
| if (!empty($recommendations)) { | ||||||
| return match($level) { | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.