We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf3bb6 commit 6400ef1Copy full SHA for 6400ef1
ext/dom/tests/bug69679.phpt
@@ -0,0 +1,12 @@
1
+--TEST--
2
+Bug #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);
8
+print($doc->saveHTML());
9
+?>
10
+--EXPECT--
11
+<!DOCTYPE html>
12
+<html><head><meta charset="UTF-8"></head><body>U+0000 <span></span></body></html>
0 commit comments