mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +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]
|
||
---|---|---|
.. | ||
bug25666.phpt | ||
bug26528.phpt | ||
bug26614_libxml_gte2_11.phpt | ||
bug26614_libxml_pre2_11.phpt | ||
bug26614.phpt | ||
bug27908.phpt | ||
bug30266.phpt | ||
bug30875.phpt | ||
bug32001.phpt | ||
bug32001b.phpt | ||
bug35447.phpt | ||
bug46699.phpt | ||
bug50576.phpt | ||
bug65236.phpt | ||
bug70962.phpt | ||
bug71592.phpt | ||
bug72085.phpt | ||
bug72099.phpt | ||
bug72714.phpt | ||
bug72793.phpt | ||
bug73135.phpt | ||
bug76874.phpt | ||
bug78563_final.phpt | ||
bug78563_serialize.phpt | ||
bug78563.phpt | ||
bug81351.phpt | ||
inc.ent | ||
xml001.phpt | ||
xml002.phpt | ||
xml003.phpt | ||
xml004.phpt | ||
xml007.phpt | ||
xml009.phpt | ||
xml010.phpt | ||
xml011.phpt | ||
xml_closures_001.phpt | ||
xml_error_string_basic.phpt | ||
xml_parse_into_struct_variation.phpt | ||
xml_parser_get_option_variation3.phpt | ||
xml_parser_get_option_variation4.phpt | ||
xml_parser_set_option_basic.phpt | ||
xml_parser_set_option_variation4.phpt | ||
xml_parser_set_option_variation5.phpt | ||
xml_set_notation_decl_handler_basic.phpt | ||
xml_set_processing_instruction_handler_basic.phpt | ||
xml_set_start_namespace_decl_handler_basic.phpt | ||
xmltest.xml |