1--TEST-- 2XMLReader: setParserProperty Error 3--EXTENSIONS-- 4xmlreader 5--FILE-- 6<?php 7 8$xml = '<?xml version="1.0" encoding="UTF-8"?><books><book>new book</book></books>'; 9 10$invalidProperty = -1; 11$reader = new XMLReader(); 12$reader->XML($xml); 13try { 14 $reader->setParserProperty(-1, true); 15} catch (ValueError $exception) { 16 echo $exception->getMessage() . "\n"; 17} 18$reader->close(); 19?> 20--EXPECT-- 21XMLReader::setParserProperty(): Argument #1 ($property) must be a valid parser property 22