Skip to content

Fix GH-17040: SimpleXML's unset can break DOM objects #17046

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

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Dec 4, 2024

Don't free the underlying nodes if we still have objects pointing to them, otherwise the objects are left with a NULL node pointer.

Don't free the underlying nodes if we still have objects pointing to
them, otherwise the objects are left with a NULL node pointer.
@nielsdos nielsdos marked this pull request as ready for review December 5, 2024 06:44
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

MSTM

@nielsdos nielsdos closed this in 7acc3ac Dec 6, 2024
charmitro pushed a commit to wasix-org/php that referenced this pull request Mar 13, 2025
Don't free the underlying nodes if we still have objects pointing to
them, otherwise the objects are left with a NULL node pointer.

Closes phpGH-17046.
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.

SimpleXML's unset can break DOM objects
2 participants