xref: /PHP-7.2/ext/xmlreader/tests/bug73053.phpt (revision 326a4e38)
1--TEST--
2Bug #73053 (XML reader with setSchema now fails under 5.6.25)
3--SKIPIF--
4<?php
5if (!extension_loaded('xmlreader')) die('skip xmlreader extension not available');
6if (LIBXML_VERSION === 20904) die('skip fails with libxml 2.9.4');
7?>
8--FILE--
9<?php
10$xmlfile = __DIR__ . DIRECTORY_SEPARATOR . 'bug73053.xml';
11$xsdfile = __DIR__ . DIRECTORY_SEPARATOR . 'bug73053.xsd';
12
13$xml = new XMLReader();
14var_dump($xml->open($xmlfile, null, LIBXML_PARSEHUGE));
15$xml->setSchema($xsdfile);
16while($xml->read());
17?>
18===DONE===
19--EXPECT--
20bool(true)
21===DONE===
22