xref: /PHP-8.4/ext/simplexml/tests/bug69491.phpt (revision 7f2f0c00)
1--TEST--
2Bug #69491 (simplexml doesn't correctly parse empty nodes on same line as another node)
3--EXTENSIONS--
4simplexml
5--FILE--
6<?php
7var_dump(simplexml_load_string('<a>
8  <b><c/></b>
9</a>'));?>
10--EXPECT--
11object(SimpleXMLElement)#1 (1) {
12  ["b"]=>
13  object(SimpleXMLElement)#2 (1) {
14    ["c"]=>
15    object(SimpleXMLElement)#3 (0) {
16    }
17  }
18}
19