1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/xmlreader/tests/bug73053.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

20 lines
528 B
PHP

--TEST--
Bug #73053 (XML reader with setSchema now fails under 5.6.25)
--SKIPIF--
<?php
if (!extension_loaded('xmlreader')) die('skip xmlreader extension not available');
if (LIBXML_VERSION === 20904) die('skip fails with libxml 2.9.4');
?>
--FILE--
<?php
$xmlfile = __DIR__ . DIRECTORY_SEPARATOR . 'bug73053.xml';
$xsdfile = __DIR__ . DIRECTORY_SEPARATOR . 'bug73053.xsd';
$xml = new XMLReader();
var_dump($xml->open($xmlfile, null, LIBXML_PARSEHUGE));
$xml->setSchema($xsdfile);
while($xml->read());
?>
--EXPECT--
bool(true)