-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Segmentation fault in snmpget #16959
Comments
Lines 681 to 682 in 17187c4
We must not convert array elements when the array is passed by value. That's even a problem without OPcache, because we may change the array. Adding a |
ah true, maybe zval_(try)_get_string is more appropriate here ? |
Yes, see e.g. #16370. If you want to work on fix, I'll gladly leave that to you. :) |
Alright I ll have a look at it in few hours. |
Instead of modifying the zval, we use the zend_try_get_string.
Instead of modifying the zval, we use the zend_try_get_string.
Description
The following code:
Resulted in this output:
To reproduce:
PHP Version
nightly
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: