1--TEST--
2XML parsing with LIBXML_RECOVER
3--EXTENSIONS--
4simplexml
5--FILE--
6<?php
7
8var_dump(simplexml_load_string('<root><child/>', options: LIBXML_RECOVER));
9
10?>
11--EXPECTF--
12Warning: simplexml_load_string(): %s
13
14Warning: simplexml_load_string(): <root><child/> in %s on line %d
15
16Warning: simplexml_load_string():               ^ in %s on line %d
17object(SimpleXMLElement)#1 (1) {
18  ["child"]=>
19  object(SimpleXMLElement)#2 (0) {
20  }
21}
22