Skip to content

zend_weakrefs: Add zend_weakrefs_hash_(clean|destroy)() #16439

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

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

TimWolla
Copy link
Member

These are equivalent to zend_hash_clean() and zend_hash_destroy() respectively, but take care of correctly unregistering the weak references to the keys.

This addition rounds off the weakmap functionality added in 471102e by taking one possible footgun away from the user.

These are equivalent to `zend_hash_clean()` and `zend_hash_destroy()`
respectively, but take care of correctly unregistering the weak references to
the keys.

This addition rounds off the weakmap functionality added in
471102e by taking one possible footgun away
from the user.
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 reasonable enough to me.

@TimWolla TimWolla merged commit 3401d55 into php:master Oct 14, 2024
10 checks passed
@TimWolla TimWolla deleted the zend-weakrefs-hash-clean-destroy branch October 14, 2024 16:57
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.

2 participants