From: garvinhicking Date: Tue, 28 Jun 2005 11:42:34 +0000 (+0000) Subject: supress possible warnings on non UTF/ISO-8859-1 charsets X-Git-Tag: 0.9~377 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=63ec769191f88c5975cb40c36a72a8e45cbd097c;p=s9y.git supress possible warnings on non UTF/ISO-8859-1 charsets --- diff --git a/bundled-libs/Onyx/RSS.php b/bundled-libs/Onyx/RSS.php index 7f4aeee..9601c41 100644 --- a/bundled-libs/Onyx/RSS.php +++ b/bundled-libs/Onyx/RSS.php @@ -81,7 +81,7 @@ class ONYX_RSS } xml_set_object($this->parser, $this); xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, false); - xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, LANG_CHARSET); + @xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, LANG_CHARSET); xml_set_element_handler($this->parser, 'tag_open', 'tag_close'); xml_set_character_data_handler($this->parser, 'cdata'); } diff --git a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php index c5dfecd..faf6c71 100644 --- a/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php +++ b/plugins/serendipity_plugin_remoterss/serendipity_plugin_remoterss.php @@ -115,7 +115,7 @@ class s9y_remoterss_XMLTree { // XML functions $p = xml_parser_create(); // by: anony@mous.com - meets XML 1.0 specification - xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0); + @xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($p, XML_OPTION_TARGET_ENCODING, LANG_CHARSET); xml_parse_into_struct($p, $data, $vals, $index); xml_parser_free($p);