Skip to content

Fix #224: Segfault while using Ds\Set#225

Merged
rtheunissen merged 1 commit intophp-ds:masterfrom
ndossche:fix-224
Mar 11, 2026
Merged

Fix #224: Segfault while using Ds\Set#225
rtheunissen merged 1 commit intophp-ds:masterfrom
ndossche:fix-224

Conversation

@ndossche
Copy link
Contributor

@ndossche ndossche commented Mar 6, 2026

The string may be refcounted or interned, so freeing is not valid, it should be releasing the string. Also switch to the _func variant as I first believed that we could use the zval_get_tmp_string() function but that would be pointless here as IS_STRING is already handled.

The string may be refcounted or interned, so freeing is not valid, it
should be releasing the string. Also switch to the _func variant as I
first believed that we could use the zval_get_tmp_string() function but
that would be pointless here as IS_STRING is already handled.
@MarioHoberg
Copy link

Patch seems to work for me when applying to version in Debian Bookworm.

@rtheunissen rtheunissen merged commit c0bb653 into php-ds:master Mar 11, 2026
16 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants