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