--TEST--
Bug #64230 (XMLReader does not suppress errors)
--EXTENSIONS--
xmlreader
--FILE--
message);
}
libxml_clear_errors();
}
echo "Internal errors TRUE\n";
libxml_use_internal_errors(true);
$x = new XMLReader;
$x->xml("");
$x->read();
show_internal_errors();
echo "Internal errors FALSE\n";
libxml_use_internal_errors(false);
$x = new XMLReader;
$x->xml("");
$x->read();
show_internal_errors();
?>
Done
--EXPECTF--
Test
Internal errors TRUE
Internal: Specification mandate%A value for attribute att
Internal errors FALSE
Warning: XMLReader::read(): %s: parser error : Specification mandate%A value for attribute att in %s on line %d
Warning: XMLReader::read(): in %s on line %d
Warning: XMLReader::read(): ^ in %s on line %d
Done