mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
7c0dfc5cf5
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]
|
||
---|---|---|
.. | ||
tests | ||
compat.c | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
expat_compat.h | ||
php_xml.h | ||
xml_arginfo.h | ||
xml.c | ||
xml.stub.php |