-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix GH-17951: memory_limit ini value not being overwritten by max_memory_limit #19963
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
Thanks for the patch. This was a bit short-sighted of me, I thought we could avoid breaking the To clarify for the RMs, as part of GH-17951 I added this code: Lines 406 to 411 in 65b9306
which skips assignment of the ini-value if |
Yes, a signature change would be the superior solution. |
8.5 has already branched - are you suggesting that this patch should target 8.5 rather than master? |
The question is whether a change to But I'm happy to merge this fix for now and make the aforementioned improvements in master instead. |
Is this a fix for something that broke in 8.5? If the problematic behavior predates 8.5 we should probably leave the fix for master, but I'll check with @edorian |
Effectively, yes. The lines I linked above were added in 8.5, but contain an issue that is cleanest to solve with the small API break. It's solvable without it, but requires an extra allocation. Just to avoid confusion, I'm not asking for permission for this patch. This one has no API break. Adjusting |
master...iluuu1994:php-src:gh-19963-alt Nevermind, this turned out to be way more involved since I didn't consider that all the calls to |
…memory_limit Make sure to always duplicate max_memory_limit ini value. Otherwise the alter ini routine may assume the value hasn't been overwritten, resulting in the user-specified value being set after the on_modify handler has run.
Make sure to always duplicate max_memory_limit ini value. Otherwise the alter ini routine may assume the value hasn't been overwritten, resulting in the user-specified value being set after the on_modify handler has run.