1--TEST-- 2XMLReader: Expand Error 3--SKIPIF-- 4<?php if (!extension_loaded("xmlreader")) print "skip"; 5if (!extension_loaded("dom")) print "skip DOM extension required"; 6$reader = new XMLReader(); 7if (!method_exists($reader, 'expand')) print "skip"; 8?> 9--FILE-- 10<?php 11 12$xmlstring = '<?xml version="1.0" encoding="UTF-8"?> 13<books><book>new book</book></books>'; 14 15$reader = new XMLReader(); 16var_dump($reader->expand()); 17$reader->close(); 18 19$reader = new XMLReader(); 20$reader->XML($xmlstring); 21var_dump($reader->expand()); 22$reader->close(); 23?> 24--EXPECTF-- 25Warning: XMLReader::expand(): Load Data before trying to expand in %s on line %d 26bool(false) 27 28Warning: XMLReader::expand(): An Error Occurred while expanding in %s on line %d 29bool(false) 30