1--TEST--
2XML parsing with LIBXML_RECOVER
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = new DOMDocument;
9$dom->loadXML('<root><child/>', options: LIBXML_RECOVER);
10echo $dom->saveXML();
11
12$dom = Dom\XMLDocument::createFromString('<root><child/>', options: LIBXML_RECOVER);
13echo $dom->saveXML(), "\n";
14
15?>
16--EXPECTF--
17Warning: DOMDocument::loadXML(): %s
18<?xml version="1.0"?>
19<root><child/></root>
20
21Warning: Dom\XMLDocument::createFromString(): %s
22<?xml version="1.0" encoding="UTF-8"?>
23<root><child/></root>
24