Skip to content

zend_hash: Assert that the interned parameter is not a lie - #19843

Merged
TimWolla merged 2 commits into
php:masterfrom
TimWolla:zend-hash-append-ex-assert
Sep 16, 2025
Merged

zend_hash: Assert that the interned parameter is not a lie#19843
TimWolla merged 2 commits into
php:masterfrom
TimWolla:zend-hash-append-ex-assert

Conversation

@TimWolla

Copy link
Copy Markdown
Member

While investigating #19842 I was wondering why non-interned string didn't cause troubles, until I realized it was the value instead of the key. Nevertheless it appears useful to check that the key is actually interned as claimed by the caller to prevent hard-to-find bugs.

While investigating php#19842 I was wondering why non-interned string
didn't cause troubles, until I realized it was the value instead of the key.
Nevertheless it appears useful to check that the key is actually interned as
claimed by the caller to prevent hard-to-find bugs.
Comment threadZend/zend_hash.h Outdated
@TimWolla
TimWolla merged commit 28fc06b into php:masterSep 16, 2025
9 checks passed
@TimWolla
TimWolla deleted the zend-hash-append-ex-assert branch September 16, 2025 08:51
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.

2 participants

@TimWolla@iluuu1994