xref: /php-src/ext/dom/tests/gh15570.phpt (revision 690ce6d5)
1--TEST--
2GH-15570 (Segmentation fault (access null pointer) in ext/dom/html5_serializer.c)
3--CREDITS--
4YuanchengJiang
5--EXTENSIONS--
6dom
7--FILE--
8<?php
9$html = <<<HTML
10<head>
11</html>
12HTML;
13$dom = Dom\HTMLDocument::createFromString($html, LIBXML_NOERROR);
14$a = $dom->head->firstChild->cloneNode(false);
15var_dump($dom->saveHTML($a));
16?>
17--EXPECT--
18string(1) "
19"
20