php-src/ext/dom
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
attr.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
cdatasection.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
characterdata.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
comment.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
config.m4 [RFC] Implement new DOM Living Standard APIs in ext/dom 2020-02-28 16:13:39 +01:00
config.w32 [RFC] Implement new DOM Living Standard APIs in ext/dom 2020-02-28 16:13:39 +01:00
CREDITS
document.c Merge branch 'PHP-8.0' into PHP-8.1 2023-02-12 21:33:39 -07:00
documentfragment.c Fixed some spaces used instead of tabs 2021-06-29 11:30:26 +02:00
documenttype.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
dom_ce.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
dom_iterators.c Fixed some spaces used instead of tabs 2021-06-29 11:30:26 +02:00
dom_properties.h Make a few unuseful DOMEntity properties readonly (#7406) 2021-08-26 10:37:45 +02:00
domexception.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
domexception.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
domimplementation.c Merge branch 'PHP-8.0' into PHP-8.1 2021-11-14 23:29:59 -08:00
element.c Merge branch 'PHP-8.0' into PHP-8.1 2021-09-13 12:14:32 +02:00
entity.c Update property read handler comments for DOMEntity 2021-08-26 13:15:24 +02:00
entityreference.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
namednodemap.c DOMNamedNodeMap::count() cannot return false 2021-07-16 16:27:53 +02:00
node.c Merge branch 'PHP-8.0' into PHP-8.1 2022-08-19 18:13:48 +02:00
nodelist.c DOMNodeList::count() cannot return false 2021-07-16 16:22:52 +02:00
notation.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
parentnode.c Fix incorrect error handling in dom_zvals_to_fragment() 2023-04-03 21:21:35 +02:00
php_dom.c Make a few unuseful DOMEntity properties readonly (#7406) 2021-08-26 10:37:45 +02:00
php_dom.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_dom.stub.php Fix a few more classsynopsis generation issues 2021-09-22 23:09:43 +02:00
php_dom_arginfo.h Fix a few more classsynopsis generation issues 2021-09-22 23:09:43 +02:00
processinginstruction.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
text.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
xml_common.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
xpath.c Fixed some spaces used instead of tabs 2021-06-29 11:30:26 +02:00