php-src/ext/libxml
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
config0.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 Control VCRT leak reporting via environment variable in debug builds 2020-06-10 09:05:17 +02:00
CREDITS
libxml_arginfo.h Add more specific array return type hints for various extensions - part 3 (#7467) 2021-09-06 12:27:28 +02:00
libxml.c Fix GH-11160: Few tests failed building with new libxml 2.11.0 2023-05-06 23:10:07 +02:00
libxml.stub.php Add more specific array return type hints for various extensions - part 3 (#7467) 2021-09-06 12:27:28 +02:00
php_libxml2.def Add symbol to libxml exports 2017-09-11 17:35:25 +02:00
php_libxml.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00