History log of /PHP-7.4/ext/dom/tests/bug80268.phpt (Results 1 – 2 of 2)
Revision Date Author Comments
# f3d1e9ed 22-May-2021 Stéphan Kochen

Make tests compatible with libxml2 2.9.12

This version of libxml introduced quite a few changes. Most of
them are differences in error reporting, while some also change
behavior, e.g

Make tests compatible with libxml2 2.9.12

This version of libxml introduced quite a few changes. Most of
them are differences in error reporting, while some also change
behavior, e.g. null bytes are no longer supported and xinclude
recursion is limited.

Closes GH-7030. Closes GH-7046.

Co-authored-by: Nikita Popov <nikic@php.net>

show more ...


# 6d2bc725 23-Oct-2020 Christoph M. Becker

Fix #80268: loadHTML() truncates at NUL bytes

libxml2 has no particular issues parsing HTML strings with NUL bytes;
these just cause truncation of the current text content, but parsing

Fix #80268: loadHTML() truncates at NUL bytes

libxml2 has no particular issues parsing HTML strings with NUL bytes;
these just cause truncation of the current text content, but parsing
continues generally. Since `::loadHTMLFile()` already supports NUL
bytes, `::loadHTML()` should as well.

Note that this is different from XML, which does not allow any NUL
bytes.

Closes GH-6368.

show more ...