PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_RSS » Bug #2310

xml_rss constructor should pass xml_parser options

Details

Request #2310xml_rss constructor should pass xml_parser options
Submitted2004-09-10 12:47 UTC
Fromnospam2 at multimedia-werkstatt dot com
Assignedmj
StatusClosed
PackageXML_RSS
PHP Version4.3.5
OSany
Roadmaps(Not assigned)

Comments

[2004-09-10 12:47 UTC] nospam2 at multimedia-werkstatt dot com

Description:
------------
the constructor should pass encoding parameters to the xml_parser like this one:

/**
* Constructor
*
* @access public
* @param mixed File pointer or name of the RDF file.
* @return void
*/
function XML_RSS($handle = '', $srcenc = null, $mode = 'event', $tgtenc = null)
{
$this->XML_Parser( $srcenc, $mode, $tgtenc);

if (@is_resource($handle)) {
$this->setInput($handle);
} elseif ($handle != '') {
$this->setInputFile($handle);
} else {
$this->raiseError('No filename passed.');
}
}

this is required to support feeds with different encodings (like utf-8 or something..)