Skip to content

Fix handling of references in zval_try_get_long() - #18761

Closed
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:fix-zval_try_get_long
Closed

Fix handling of references in zval_try_get_long()#18761
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:fix-zval_try_get_long

Conversation

@ndossche

Copy link
Copy Markdown
Member

This API can't handle references, yet everyone keeps forgetting that it can't and that you should DEREF upfront. Fix every type of this issue once and for all by moving the reference handling to this Zend API.

This API can't handle references, yet everyone keeps forgetting that it
can't and that you should DEREF upfront. Fix every type of this issue
once and for all by moving the reference handling to this Zend API.

@iluuu1994iluuu1994 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@ndossche

Copy link
Copy Markdown
MemberAuthor

For mbstring it's just adding a test, so merging...

@alexdowad

Copy link
Copy Markdown
Contributor

Thank you!

Sign up for freeto 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.

4 participants

@ndossche@alexdowad@iluuu1994@devnexen