Skip to content

ext/libxml: Fix build failure with libxml2 2.15.#22755

Open
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh22752
Open

ext/libxml: Fix build failure with libxml2 2.15.#22755
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh22752

Conversation

@devnexen

Copy link
Copy Markdown
Member

Fix GH-22752

libxml2 2.15 removed the built-in HTTP client, the FTP module, the functions in xmlunicode.h, the shell and several other legacy symbols. The Windows export list php_libxml2.def still referenced them, so the statically linked build failed with hundreds of unresolved external symbols.

Move the removed symbols into a separate php_libxml2_legacy.def and add it only when building against libxml2 < 2.15, keeping the exports intact for 2.11 through 2.14.

Fix phpGH-22752

libxml2 2.15 removed the built-in HTTP client, the FTP module, the
functions in xmlunicode.h, the shell and several other legacy symbols.
The Windows export list php_libxml2.def still referenced them, so the
statically linked build failed with hundreds of unresolved external
symbols.

Move the removed symbols into a separate php_libxml2_legacy.def and add
it only when building against libxml2 < 2.15, keeping the exports intact
for 2.11 through 2.14.
@devnexen devnexen marked this pull request as ready for review July 15, 2026 21:08
@devnexen devnexen requested a review from petk July 15, 2026 21:08
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.

1 participant