-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Suppress arginfo / zpp mismatch via ZEND_SUPPRESS_ARGINFO_ZPP_MISMATCH #10424
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.2
Are you sure you want to change the base?
Conversation
This seems kinda related to #10417, where I found that the check introduced in 8.2 wrongly disabled validation in that function by creating a condition which is always true. |
84ab5c0
to
69e2cd4
Compare
69e2cd4
to
f8cc253
Compare
ed6897e
to
e836fee
Compare
2bfe908
to
4bddb69
Compare
@zeriyoshi is this still relevant with #10417 merged or not? |
@Girgias I am only concerned if this change is acceptable as a patch version change. Since it only affects debug builds, I don't see it as a problem... |
The patch is ABI-breaking, so definitely not acceptable in this form. |
@nikic But I don't particularly want this change in PHP-8.2 branch, so I would like to make the same change for master. Is the ABI change acceptable in this case? |
@zeriyoshi The ABI break would definitely be acceptable for |
@iluuu1994 |
@zeriyoshi Sure! Should be fine for master. |
Thanks! I rework it. |
@zeriyoshi Would you still like to merge this? In that case, please rebase and target |
Currently, debug builds of PHP always detect an arginfo / zpp mismatch in shared extensions and raise a Fatal Error while running extensions that do not properly define arginfo. This is very inconvenient if you want to get a core dump while running an extension (e.g. protobuf, redis) that does not define arginfo properly.
To solve this problem, the environment variable
ZEND_SUPPRESS_ARGINFO_ZPP_MISMATCH
has been added to disable arginfo / zpp integrity checks even in debug builds when it is enabled.In PHP 8.2, a change was made to disable detection of Fake Closure arginfo / zpp mismatches, a side effect of which is that arginfo / zpp integrity checks are no longer performed for extensions built into PHP itself. It appears that this change is aready unnecessary, so we will revert it at the same time.Update: This is bug and fixed in #10417
In any case, this change affects only debug builds and does not affect normal builds.
Closes: #10451