-
Notifications
You must be signed in to change notification settings - Fork 8k
Fix ini values not getting restored after request has finished #19964
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
base: PHP-8.5
Are you sure you want to change the base?
Conversation
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.
The OnChangeMaxMemoryLimit
part makes sense to me. I did not know per-host ini settings were a thing, and could change OnChangeMaxMemoryLimit
after OnChangeMemoryLimit
.
As for the FPM part, I'll let that review up to Jakub, as I don't know much about FPM.
Yeah I got it on my list and should be able to check in the next few days. |
6aeb75c
to
3c7b502
Compare
My bad. I somehow missed them in the rebase. They are back now. |
Argh... Referenced wrong commit in a different PR. Sorry about that. |
So I went through this and the FPM is actually a very well known thing that we have 3 bug reports open:
Those are all valid concerns and I agree that this should be design like that. However I'm quite worried about BC impact. The thing is that there are likely setup relying on the setting being kept between requests. This is really not something I want to deal with. Another thing is that we also have requests to completely disable the FCGI env INI settinsg so what I would like to introduce instead is an option to control it. It means it should specify how this is going to behave and have couple of options. The default should stay as it is but after some years we can consider changing it so people can try it before the migration and mainly there will be option to revert it back if it breaks their use case. It means the FPM part should be removed from this PR as it is no acceptable in the current form. |
In addition this FPM change is also wrong because it needs to keep using |
I've removed the FPM related commit. The code is actually about ~10 years old, and I've been maintaining it since. I had hoped I could contribute it upstream. |
This fixes two separate cases of ini values not getting restored:
Both cases should be passed through zend_alter_ini, so modified_ini_directives can keep track.