xref: /PHP-8.0/ext/simplexml/tests/bug81325.phpt (revision 940c3536)
1--TEST--
2BUg #81325 (segfault in zif_simplexml_import_dom)
3--SKIPIF--
4<?php
5if (!extension_loaded('simplexml')) die('skip simplexml not available');
6if (!extension_loaded('dom')) die('skip dom not available');
7?>
8--FILE--
9<?php
10$dom = new DOMDocument;
11$dom->loadXML("foo");
12$xml = simplexml_import_dom($dom);
13?>
14Done
15--EXPECTF--
16Warning: DOMDocument::loadXML(): Start tag expected%s
17
18Warning: simplexml_import_dom(): Invalid Nodetype%s
19Done
20