Skip to content
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

Don’t reset func in zend_closure_internal_handler #9823

Closed

Conversation

rioderelfte
Copy link
Contributor

The pointer is used in _zend_observe_fcall_begin().

The new test segfaulted before the change.

The pointer is used in _zend_observe_fcall_begin().
@iluuu1994 iluuu1994 requested a review from bwoebi October 24, 2022 23:13
Copy link
Member

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right to me, all other occurrences of EX(func) = NULL; are trampolines, but that particular one doesn't seem so. Good catch.

@bwoebi
Copy link
Member

bwoebi commented Oct 26, 2022

Merged via b9474bf.

@bwoebi bwoebi closed this Oct 26, 2022
@rioderelfte rioderelfte deleted the dont-reset-func-in-closure branch October 29, 2022 09:50
@rioderelfte rioderelfte restored the dont-reset-func-in-closure branch October 29, 2022 10:07
@rioderelfte rioderelfte deleted the dont-reset-func-in-closure branch October 29, 2022 10:09
@rioderelfte rioderelfte restored the dont-reset-func-in-closure branch October 29, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants