xref: /PHP-8.2/ext/xmlreader/tests/bug73053.phpt (revision 74859783)
1--TEST--
2Bug #73053 (XML reader with setSchema now fails under 5.6.25)
3--EXTENSIONS--
4xmlreader
5--SKIPIF--
6<?php
7if (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
14$xml = new XMLReader();
15var_dump($xml->open($xmlfile, null, LIBXML_PARSEHUGE));
16$xml->setSchema($xsdfile);
17while($xml->read());
18?>
19--EXPECT--
20bool(true)
21