xref: /php-src/ext/dom/tests/bug78025.phpt (revision bd9f4fa6)
1--TEST--
2Bug #78025 (segfault when accessing properties of DOMDocumentType)
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$htm = "<!DOCTYPE><html></html>";
8$dom = new DOMDocument;
9$dom->loadHTML($htm);
10var_dump($dom->doctype->name);
11?>
12--EXPECTF--
13Warning: DOMDocument::loadHTML(): htmlParseDocTypeDecl : no DOCTYPE name ! in Entity, line: 1 in %s on line %d
14string(0) ""
15