--TEST-- Bug #44478 (Inconsistent behaviour when assigning new nodes) --SKIPIF-- --FILE-- '); $xml_element->node1 = 'a & b'; print $xml_element->node1."\n"; $xml_element->node1 = 'a & b'; print $xml_element->node1."\n"; $xml_element->addChild('node2','a & b'); print $xml_element->node2."\n"; $xml_element->node2 = 'a & b'; print $xml_element->node2."\n"; print $xml_element->asXML(); ?> --EXPECT-- a & b a & b a & b a & b a & ba & b