Fix tests failing as of libxml2 2.9.12 #7030
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes are maybe a bit bold, but let me know what the proper course of action is here. 🙂
As of libxml2 2.9.12 (a security release), some DOM extension tests are failing. See below for the detailed output. How I interpreted these failures:
DOMDocument_loadXML_error1.phpt
- a minor difference in error reporting because of libxml2 parser changes.DOMDocument_load_error1.phpt
- a minor difference in error reporting because of libxml2 parser changes.bug43364.phpt
(bug link, original fix) - I don't think we can support this scenario anymore in the new libxml2 version, so that's why I deleted the test. I believe the relevant upstream change is 31c6ce3 (recursion looks to be disabled)bug80268.phpt
(bug link, original fix) - I don't think we can support this scenario anymore in the new libxml2 version, so that's why I deleted the test. I believe the relevant upstream change is either dfd4e33 or e050062.This affects current PHP 7.4(.19) and 8.0(.6). I'm not sure if your policy is to also update 7.3 (in security support) if it involves compatibility with an upstream security release.
There is some downstream NixOS discussion in NixOS/nixpkgs#123279, but that is a process-related issue; there is no specific downstream issue for this yet.
Test run details: