mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
21 lines
416 B
PHP
21 lines
416 B
PHP
--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) {
|
|
}
|
|
}
|
|
}
|