Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (27 sloc) 0.653 kb
--TEST--
XML Parser: test for Bug #9328 "assigned by reference error in XML_RSS parse"
--SKIPIF--
<?php
/*
* can't test if XML_RSS is not installed
*/
$originalErrorReporting = error_reporting();
error_reporting(E_ALL & ~E_WARNING);
if ('OK' != (include_once 'XML/RSS.php')) {
print('skip if XML_RSS is not installed');
}
error_reporting($originalErrorReporting);
?>
--FILE--
<?php
/*
* this issue only exists in PHP4
*/
require_once 'XML/RSS.php';
$url = 'www.someverybogusurl.com';
$rss =& new XML_RSS($url);
$error = $rss->parse();
echo $error->getMessage() . PHP_EOL;
?>
--EXPECT--
XML_Parser: Invalid document end at XML input line 1:1
Jump to Line
Something went wrong with that request. Please try again.