--TEST-- XMLReader: libxml2 XML Reader, string data --SKIPIF-- --FILE-- '; $reader = new XMLReader(); $reader->XML($xmlstring); // Only go through while ($reader->read()) { echo $reader->name."\n"; } $xmlstring = ''; $reader = new XMLReader(); $reader->XML($xmlstring); ?> ===DONE=== --EXPECTF-- books books Warning: XMLReader::XML(): Empty string supplied as input in %s on line %d ===DONE===