Skip to content

Fix GH-22138: skip libxml/xmlreader tests on non-ASCII paths.#22150

Draft
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh22138
Draft

Fix GH-22138: skip libxml/xmlreader tests on non-ASCII paths.#22150
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh22138

Conversation

@devnexen
Copy link
Copy Markdown
Member

libxml2 2.13+ rejects unencoded non-ASCII bytes in SYSTEM URIs via xmlBuildURISafe and emits "Can't resolve URI", which breaks four tests when the source tree lives under a path like "~/下载/". Skip them with a clear reason on such paths, and loosen the EXPECTF for the two tests that previously matched only "failed to load" so both libxml2 message formats are accepted.

libxml2 2.13+ rejects unencoded non-ASCII bytes in SYSTEM URIs via
xmlBuildURISafe and emits "Can't resolve URI", which breaks four tests
when the source tree lives under a path like "~/下载/". Skip them with
a clear reason on such paths, and loosen the EXPECTF for the two tests
that previously matched only "failed to load" so both libxml2 message
formats are accepted.
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.

libxml and XMLReader tests fail with "Can't resolve URI" errors because external entity loading is disabled by default

1 participant