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
Improved PHP-FPM diagnostic check config option compatibility #19031
Improved PHP-FPM diagnostic check config option compatibility #19031
Conversation
…s_diagnostic config setting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I was wondering if we really need to make it that complex. If some private directories are accessible, I guess the other diagnostic check will print a warning nevertheless, so there isn't much value in adding another warning here.
I guess I would simply skip the directory check here, if disabled in config and print the sapi name
I've simplified it so that the file access warning message will only be shown if they are using PHP-FPM and the |
… into m-18967-diag-fpm-respect-config
Description:
The additional access rule checks for PHP-FPM added by #18398 do not respect the
enable_required_directories diagnostic
config.ini.php
setting and are therefore causing unwanted http requests for config files when the setting is set to disabled.This PR adjusts this diagnostic check to only attempt file access if the config setting allows it.
Fixes #18967
Review