summaryrefslogtreecommitdiff
path: root/ext/dom/tests/bug69679.phpt
blob: e96c11a056e43e3c97b4d3a78db711efa76bc707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #69679 (DOMDocument::loadHTML refuses to accept NULL bytes)
--SKIPIF--
<?php require 'skipif.inc' ?>
--FILE--
<?php
$doc = new DOMDocument();
$html = "<!DOCTYPE html><html><head><meta charset='UTF-8'></head><body>U+0000 <span>\x0</span></body></html>";
$doc->loadHTML($html);
print($doc->saveHTML());
?>
--EXPECT--
<!DOCTYPE html>
<html><head><meta charset="UTF-8"></head><body>U+0000 <span></span></body></html>