Issue: https://github.com/php/php-src/issues/11160
Author: andypost
### Description
The following tests fail:
```
Test DOMDocument::loadXML() detects not-well formed XML
[ext/dom/tests/DOMDocument_loadXML_error2.phpt]
Test DOMDocument::load() detects not-well formed XML [ext/dom/tests/DOMDocument_load_error2.phpt]
Bug #61367: open_basedir bypass in libxml RSHUTDOWN: read test
[ext/libxml/tests/bug61367-read_2.phpt]
libxml_disable_entity_loader() [ext/libxml/tests/libxml_disable_entity_loader_2.phpt]
Bug #26614 (CDATA sections skipped on line count) [ext/xml/tests/bug26614_libxml.phpt]
```
Detail below
### PHP Version
PHP 8.1.18
### Operating System
Alpinelinux