xref: /PHP-5.6/ext/dom/tests/bug69679.phpt (revision 6400ef19)
1--TEST--
2Bug #69679 (DOMDocument::loadHTML refuses to accept NULL bytes)
3--FILE--
4<?php
5$doc = new DOMDocument();
6$html = "<!DOCTYPE html><html><head><meta charset='UTF-8'></head><body>U+0000 <span>\x0</span></body></html>";
7$doc->loadHTML($html);
8print($doc->saveHTML());
9?>
10--EXPECT--
11<!DOCTYPE html>
12<html><head><meta charset="UTF-8"></head><body>U+0000 <span></span></body></html>
13