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