#3 Fix for Magpie hanging when parsing

open
nobody
None
5
2005-05-29
2005-05-29
Randy Brown
No

Giving an empty string to xml_parser_create, at least
for some versions, seems to confuse the parser.

Discussion

  • Randy Brown
    Randy Brown
    2005-05-29

    small patch

     
    Attachments
  • Gene Wood
    Gene Wood
    2008-07-21

    Logged In: YES
    user_id=547273
    Originator: NO

    Lycotic, excellent find. This 100% fixed the problem. The error message which I was getting which this patch fixed was :

    Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/magpierss/rss_parse.inc on line 127

    Here's the contents of the attached patch :

    --- rss_parse.inc.orig Sat May 28 23:08:32 2005
    +++ rss_parse.inc Sat May 28 23:08:49 2005
    @@ -480,7 +480,7 @@
    return xml_parser_create($in_enc);
    }
    else {
    - return xml_parser_create('');
    + return xml_parser_create();
    }
    }