bug69491.phpt 348 B

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