/usr/share/php/tests/XML_Parser/tests/bug-9328.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 27 28 29 30 31 32 33 34 35 36 | --TEST--
XML Parser: test for Bug #9328 "assigned by reference error in XML_RSS parse"
--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';
}
/*
* can't test if XML_RSS is not installed
*/
$originalErrorReporting = error_reporting();
error_reporting(E_ALL & ~E_WARNING);
if (false == (include_once 'XML/RSS.php')) {
print('skip - XML_RSS is not installed');
}
error_reporting($originalErrorReporting);
?>
--FILE--
<?php
/*
* this issue only exists in PHP4
*/
require_once 'XML/RSS.php';
$url = 'www.someverybogusurl.thisisnotatld';
$rss =& new XML_RSS($url);
$error = $rss->parse();
echo $error->getMessage() . PHP_EOL;
?>
--EXPECT--
XML_Parser: syntax error at XML input line 1:0
|