/usr/share/php/tests/XML_Parser/tests/004.phpt is in php-xml-parser 1.3.4-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | --TEST--
XML Parser: error class (PHP4 behavior)
--SKIPIF--
<?php
if (version_compare(PHP_VERSION, '5.0.0', 'ge')) {
print 'skip - test only applies to PHP4';
}
if (!extension_loaded('xml')) {
print 'skip - xml extension not available';
}
?>
--FILE--
<?php
require_once 'XML/Parser.php';
print 'New XML_Parser: ';
var_dump(strtolower(get_class($p = new XML_Parser())));
$e = $p->parseString("<?xml version='1.0' ?>\n<foo></bar>", true);
if (PEAR::isError($e)) {
printf("Error message: %s" . PHP_EOL, $e->getMessage());
} else {
print "No error" . PHP_EOL;
}
?>
--EXPECT--
New XML_Parser: string(10) "xml_parser"
Error message: XML_Parser: mismatched tag at XML input line 2:7
|