bug73053.phpt 470 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #73053 (XML reader with setSchema now fails under 5.6.25)
  3. --EXTENSIONS--
  4. xmlreader
  5. --SKIPIF--
  6. <?php
  7. if (LIBXML_VERSION === 20904) die('skip fails with libxml 2.9.4');
  8. ?>
  9. --FILE--
  10. <?php
  11. $xmlfile = __DIR__ . DIRECTORY_SEPARATOR . 'bug73053.xml';
  12. $xsdfile = __DIR__ . DIRECTORY_SEPARATOR . 'bug73053.xsd';
  13. $xml = new XMLReader();
  14. var_dump($xml->open($xmlfile, null, LIBXML_PARSEHUGE));
  15. $xml->setSchema($xsdfile);
  16. while($xml->read());
  17. ?>
  18. --EXPECT--
  19. bool(true)