--TEST--
Bug #66084 simplexml_load_string() mangles empty node name, json variant
--EXTENSIONS--
simplexml
--FILE--
')->c), "\n";
echo json_encode(simplexml_load_string('')), "\n";
echo json_encode(simplexml_load_string('')), "\n";
echo json_encode(simplexml_load_string('')), "\n";
echo json_encode(simplexml_load_string('')), "\n";
?>
--EXPECT--
{"x":{}}
{"b":{},"c":{"x":{}}}
{"b":{},"d":{},"c":{"x":{}}}
{"b":{},"c":{"d":{},"x":{}}}
{"b":{},"c":{"d":{"x":{}}}}