Skip to content

Throw warning when user tries to change unavailable ini setting #1031

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

Open
1 of 2 tasks
jrfnl opened this issue Apr 18, 2025 · 0 comments
Open
1 of 2 tasks

Throw warning when user tries to change unavailable ini setting #1031

jrfnl opened this issue Apr 18, 2025 · 0 comments

Comments

@jrfnl
Copy link
Member

jrfnl commented Apr 18, 2025

Is your feature request related to a problem?

Follow up on #416, which was fixed via #1024.

If a user tries to change an unavailable ini setting, this will currently be silently ignored.

Typically, unavailable ini settings are either a typo - think: short_open_tags vs short_open_tag - or due to the user trying to change an ini setting on a PHP extension which is not loaded.

Describe the solution you'd like

As discussed in #416, it would be good to warn users when this is happening, but without it affecting the exit code, which is currently not possible for code executed in the Config class.

Once the MessageCollector class has been introduced into the Config class, it should be possible to start throwing a notice or warning for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant