--TEST-- Bug #46047 (SimpleXML converts empty nodes into object with nested array) --SKIPIF-- --FILE-- ', LIBXML_NOCDATA); print_r($xml); $xml = new SimpleXMLElement(''); print_r($xml); $xml = new SimpleXMLElement(''); print_r($xml); ?> ===DONE=== --EXPECT-- SimpleXMLElement Object ( [bar] => SimpleXMLElement Object ( ) [baz] => SimpleXMLElement Object ( ) ) SimpleXMLElement Object ( [bar] => SimpleXMLElement Object ( ) [baz] => SimpleXMLElement Object ( ) ) SimpleXMLElement Object ( [bar] => SimpleXMLElement Object ( ) [baz] => SimpleXMLElement Object ( ) ) ===DONE===