xref: /PHP-8.1/ext/simplexml/tests/bug81325.phpt (revision 1aaec4df)
1--TEST--
2BUg #81325 (segfault in zif_simplexml_import_dom)
3--EXTENSIONS--
4simplexml
5dom
6--FILE--
7<?php
8$dom = new DOMDocument;
9$dom->loadXML("foo");
10$xml = simplexml_import_dom($dom);
11?>
12Done
13--EXPECTF--
14Warning: DOMDocument::loadXML(): Start tag expected%s
15
16Warning: simplexml_import_dom(): Invalid Nodetype%s
17Done
18