Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.0

Request #2310 xml_rss constructor should pass xml_parser options
Submitted: 2004-09-10 12:47 UTC
From: nospam2 at multimedia-werkstatt dot com Assigned: mj
Status: Closed Package: XML_RSS
PHP Version: 4.3.5 OS: any
Roadmaps: (Not assigned)    
Subscription  


 [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..)

Comments

 [2004-11-05 17:02 UTC] mj
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.