--TEST-- Bug #39760 (autocreating element doesn't assign value to first node) --EXTENSIONS-- simplexml --FILE-- "); $sx1->node[0] = 'node1'; $sx1->node[1] = 'node2'; print $sx1->asXML()."\n"; $node = $sx1->node[0]; $node[0] = 'New Value'; print $sx1->asXML(); ?> --EXPECT-- node1node2 New Valuenode2