php-src/ext/xml
Niels Dossche 7c0dfc5cf5 Fix GH-11160: Few tests failed building with new libxml 2.11.0
It's possible to categorise the failures into 2 categories:
  - Changed error message. In this case we either duplicate the test and
    modify the error message. Or if the change in error message is
    small, we use the EXPECTF matchers to make the test compatible with both
    old and new versions of libxml2.
  - Missing warnings. This is caused by a change in libxml2 where the
    parser started using SAX APIs internally [1]. In this case the
    error_type passed to php_libxml_internal_error_handler() changed from
    PHP_LIBXML_ERROR to PHP_LIBXML_CTX_WARNING because it internally
    started to use the SAX handlers instead of the generic handlers.
    However, for the SAX handlers the current input stack is empty, so
    nothing is actually printed. I fixed this by falling back to a
    regular warning without a filename & line number reference, which
    mimicks the old behaviour. Furthermore, this change now also shows
    an additional warning in a test which was previously hidden.

[1] 9a82b94a94

Closes GH-11162.
2023-05-06 23:10:07 +02:00
..
tests Fix GH-11160: Few tests failed building with new libxml 2.11.0 2023-05-06 23:10:07 +02:00
compat.c Merge branch 'PHP-8.0' 2021-08-13 17:40:32 +02:00
config.m4 Use a common setup macro to detect the Expat library 2019-06-04 10:10:50 +02:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
expat_compat.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_xml.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
xml_arginfo.h Generate optimizer func info from stubs for various extensions (#7409) 2021-08-26 19:52:11 +02:00
xml.c The userland constants do not start with PHP_ 2023-02-26 14:18:12 +00:00
xml.stub.php Generate optimizer func info from stubs for various extensions (#7409) 2021-08-26 19:52:11 +02:00