Test: /ext/dom/tests/bug76285.phpt - Version 7.3.5        

Bug #76285 DOMDocument::formatOutput attribute sometimes ignored
Submitted: 2018-04-29 06:23:16 Modified: 2018-06-28 09:43:33
From: daniel.hemberger Assigned: ab
Status: Closed Package: DOM XML related
PHP Version: Irrelevant OS:

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

Count Diff
47 (96%)
001+ Warning: Use of undefined constant LIBXML_HTML_NOIMPLIED - assumed 'LIBXML_HTML_NOIMPLIED' (this will throw an Error in a future version of PHP) in %s/bug76285.php on line 6
002+
003+ Warning: Use of undefined constant LIBXML_HTML_NODEFDTD - assumed 'LIBXML_HTML_NODEFDTD' (this will throw an Error in a future version of PHP) in %s/bug76285.php on line 6
004+
005+ Warning: DOMDocument::loadHTML() expects parameter 2 to be int, string given in %s/bug76285.php on line 6
006+ string(1) "
007+ "
008+ string(1) "
001- string(56) "<div><div><a>test</a></div><div><a>test2</a></div></div>"
002- string(57) "<div><div><a>test</a></div><div><a>test2</a></div></div>
1 (2%)
001+ string(82) "<html><body><div><div><a>test</a></div><div><a>test2</a></div></div></body></html>"
002+ string(83) "<html><body><div><div><a>test</a></div><div><a>test2</a></div></div></body></html>
001- string(56) "<div><div><a>test</a></div><div><a>test2</a></div></div>"
002- string(57) "<div><div><a>test</a></div><div><a>test2</a></div></div>
1 (2%)
001+ Warning: Use of undefined constant LIBXML_HTML_NODEFDTD - assumed 'LIBXML_HTML_NODEFDTD' (this will throw an Error in a future version of PHP) in %s/bug76285.php on line 6
002+
003+ Warning: A non-numeric value encountered in %s/bug76285.php on line 6
004+ string(82) "<html><body><div><div><a>test</a></div><div><a>test2</a></div></div></body></html>"
005+ string(190) "<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
006+ <html><body><div><div><a>test</a></div><div><a>test2</a></div></div></body></html>
001- string(56) "<div><div><a>test</a></div><div><a>test2</a></div></div>"
002- string(57) "<div><div><a>test</a></div><div><a>test2</a></div></div>