Skip to content

Avoid closing libxml output encoder twice - #23678

Merged
shivammathur merged 1 commit into
php:PHP-8.4from
shivammathur:fix/libxml-output-encoder-double-free
Sep 13, 2026
Merged

Avoid closing libxml output encoder twice#23678
shivammathur merged 1 commit into
php:PHP-8.4from
shivammathur:fix/libxml-output-encoder-double-free

Conversation

@shivammathur

Copy link
Copy Markdown
Member

This fixes a double free when PHP and libxml2 2.14.4+ both close the output encoding handler after opening the output fails.
Ref: GNOME/libxml2@fcb7a77

@devnexen

Copy link
Copy Markdown
Member

looks good but can you target PHP-8.4 instead pls ?

@shivammathur
shivammathur changed the base branch from master to PHP-8.4 September 13, 2026 17:02
@shivammathur
shivammathur changed the base branch from PHP-8.4 to master September 13, 2026 17:02
@shivammathur
shivammathur force-pushed the fix/libxml-output-encoder-double-free branch from 521ae7b to 92f4705 Compare September 13, 2026 17:06
@shivammathur
shivammathur changed the base branch from master to PHP-8.4 September 13, 2026 17:07
@shivammathur

Copy link
Copy Markdown
Member Author

@devnexen Done

@shivammathur
shivammathur merged commit c36758e into php:PHP-8.4 Sep 13, 2026
18 checks passed
shivammathur added a commit to shivammathur/php-src that referenced this pull request Sep 13, 2026
* PHP-8.5:
  Avoid closing libxml output encoder twice (php#23678)
pull Bot pushed a commit to edisplay/php-src that referenced this pull request Sep 13, 2026
* PHP-8.4:
  Avoid closing libxml output encoder twice (php#23678)
@shivammathur
shivammathur deleted the fix/libxml-output-encoder-double-free branch September 13, 2026 18:11
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