--TEST-- XMLWriter: libxml2 XML Writer, membuffer, flush --SKIPIF-- --FILE-- openMemory(); $xw->startDocument('1.0', 'UTF-8', 'standalone'); $xw->startElement("tag1"); $xw->endDocument(); // Force to write and empty the buffer echo $xw->flush(true); ?> ===DONE=== --EXPECT-- ===DONE===