--TEST-- XMLReader::fromUri() - custom constructor --EXTENSIONS-- xmlreader --FILE-- myField = 1234; echo "hello world\n"; } } $filename = __DIR__ . '/_fromUri_custom_constructor.xml'; $xmlstring = ' '; file_put_contents($filename, $xmlstring); $reader = XMLReader::fromUri($filename); // Only go through while ($reader->read()) { echo $reader->name."\n"; } $reader->close(); ?> --EXPECT-- books books --CLEAN--