Test: /ext/dom/tests/bug80268.phpt - Version 7.3.32        

Bug #80268 HTML string containing ASCII character \0 breaks DomDocument
Submitted: 2020-10-22 08:28:30 Modified: 2020-10-22 09:11:53
From: marco.marsala Assigned: cmb
Status: Closed Package: DOM XML related
PHP Version: 7.3.23 OS: Windows and Linux

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ Warning: DOMDocument::loadHTML(): Char 0x0 out of allowed range in Entity, line: 1 in %s/bug80268.php on line 3
002+ bool(false)
001- bool(true)
002- bool(true)
003+
004+ Warning: DOMDocument::loadHTMLFile(): Char 0x0 out of allowed range in /Users/rubyhsu/.phpbrew/build/php-7.3.32/ext/dom/tests/80268.html, line: 1 in %s/bug80268.php on line 9
005+ bool(false)
1 (50%)
001+ Warning: DOMDocument::loadHTML(): Char 0x0 out of allowed range in Entity, line: 1 in %s/bug80268.php on line 3
002+ bool(false)
001- bool(true)
002- bool(true)
003+
004+ Warning: DOMDocument::loadHTMLFile(): Char 0x0 out of allowed range in /home/js/Downloads/php-7.3.32/ext/dom/tests/80268.html, line: 1 in %s/bug80268.php on line 9
005+ bool(false)