<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$xml = new XMLReader();
// You must to use it
$xml->setParserProperty(XMLReader::VALIDATE, true);
Fatal error: Uncaught Error: Cannot access parser properties before loading data in /in/S4Q9H:9
Stack trace:
#0 /in/S4Q9H(9): XMLReader->setParserProperty(3, true)
#1 {main}
thrown in /in/S4Q9H on line 9
Process exited with code 255.
Output for 8.0.0 - 8.0.12
Fatal error: Uncaught ValueError: XMLReader::setParserProperty(): Argument #1 ($property) must be a valid parser property in /in/S4Q9H:9
Stack trace:
#0 /in/S4Q9H(9): XMLReader->setParserProperty(3, true)
#1 {main}
thrown in /in/S4Q9H on line 9
Process exited with code 255.