PHP5 Timeout bug

chris were
2005-03-10
2013-04-30
  • chris were
    chris were
    2005-03-10

    For those that can't currently upgrade to CVS PHP place the following in line 128 of rss_parse.inc
    if (!preg_match('/\<item/im',$source) || !preg_match('/\<entry/im',$source))
                        throw new Exception('Not a valid feed');

    and then catch the exception.
    This basically checks for any RSS items or atom entries.

    Yes its ugly, but it works until a proper PHP fix will exist on my host

     
    • chris were
      chris were
      2005-03-11

      Ignore that - it is only a poor partial solution and PHP still crashes. Something better is needed.