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

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 4 different diffs reported by users for this test.

Count Diff
2 (40%)
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/sutodiryo/Downloads/php-7.3.31/ext/dom/tests/80268.html, line: 1 in %s/bug80268.php on line 9
005+ bool(false)
1 (20%)
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/david/dropzone/php-7.3.31/ext/dom/tests/80268.html, line: 1 in %s/bug80268.php on line 9
005+ bool(false)
1 (20%)
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 /opt/applications/src/software/PHP/php-7.3.31/ext/dom/tests/80268.html, line: 1 in %s/bug80268.php on line 9
005+ bool(false)
1 (20%)
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 /usr/local/src/php/php-7.3.31/ext/dom/tests/80268.html, line: 1 in %s/bug80268.php on line 9
005+ bool(false)