Skip to content

Reuse more accurate check for APCu availability #127

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

Merged
merged 1 commit into from
Jun 2, 2022

Conversation

andrew-demb
Copy link
Collaborator

It is already used in the same class, so this change makes checks more consistent:

if (ApcuAdapter::isSupported() && (PHP_SAPI !== 'cli' || filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN))) {

@mistraloz mistraloz merged commit 3ae908c into thecodingmachine:master Jun 2, 2022
@andrew-demb andrew-demb deleted the accurate-check-apcu branch June 2, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants