From 9b6dfeca4e68ed4e7c34c90c7450db7ea8f41de8 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 22 May 2013 14:16:34 +0200 Subject: [PATCH] Ignore XML parsing error (old libxml issues) --- vendor/PicoFeed/Filter.php | 8 +------- vendor/PicoFeed/Parsers/Atom.php | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/vendor/PicoFeed/Filter.php b/vendor/PicoFeed/Filter.php index d5f2f6b..3053e1d 100644 --- a/vendor/PicoFeed/Filter.php +++ b/vendor/PicoFeed/Filter.php @@ -129,13 +129,7 @@ class Filter xml_set_element_handler($parser, 'startTag', 'endTag'); xml_set_character_data_handler($parser, 'dataTag'); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, false); - - if (! xml_parse($parser, $this->input, true)) { - - //var_dump($this->input); - die(xml_get_current_line_number($parser).'|'.xml_error_string(xml_get_error_code($parser))); - } - + xml_parse($parser, $this->input, true); // We ignore parsing error (for old libxml) xml_parser_free($parser); return $this->data; diff --git a/vendor/PicoFeed/Parsers/Atom.php b/vendor/PicoFeed/Parsers/Atom.php index 6e925d0..07a9329 100644 --- a/vendor/PicoFeed/Parsers/Atom.php +++ b/vendor/PicoFeed/Parsers/Atom.php @@ -9,7 +9,6 @@ class Atom extends Parser $this->content = $this->normalizeData($this->content); \libxml_use_internal_errors(true); - $xml = \simplexml_load_string($this->content); if ($xml === false) {