-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Replaced wrong type of "addr" in pcntl_signal callback arg #9832
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: master
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.
Thank you! This sounds reasonable. This does justify a mention in UPGRADING (since it oculd break ===
comparison). This can be done by whoever merges this.
Maybe @arnaud-lb remembers why a double was used in the first place (cf. c58e2b9). |
Unfortunately I can't remember. Apparently I exposed the int fields of The change looks good to me. We could also expose addr as a string for the following reasons:
|
That might indeed be even more reasonable. |
This is an important point! If we introduce a small BC break (I doubt, though, that anybody compares addresses), we should probably have a string right away. |
Will this still be useful or should it not be merged? |
I think that was the main takeaway. Using a string representation for the pointer might make more sense. |
Inside
ext/pcntl/pcntl.c
there was usage ofadd_assoc_double_ex()
whilst also casting to(zend_long)
I replaced it with
add_assoc_long_ex()
Closes GH-9815