mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Workaround for picoFeed memory leak. Fixes #58
This commit is contained in:
parent
3be7dd7834
commit
feadf51096
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ class Feed {
|
||||||
// Some feeds might use a different domain (eg: feedburner), so the site url is
|
// Some feeds might use a different domain (eg: feedburner), so the site url is
|
||||||
// used instead of the feed's url.
|
// used instead of the feed's url.
|
||||||
$this->favicon = (new Favicon)->find($feed->siteUrl);
|
$this->favicon = (new Favicon)->find($feed->siteUrl);
|
||||||
|
// work around a PicoFeed memory leak FIXME: remove this hack (or not) once PicoFeed stops leaking memory
|
||||||
|
libxml_use_internal_errors(false);
|
||||||
} catch (PicoFeedException $e) {
|
} catch (PicoFeedException $e) {
|
||||||
|
// work around a PicoFeed memory leak FIXME: remove this hack (or not) once PicoFeed stops leaking memory
|
||||||
|
libxml_use_internal_errors(false);
|
||||||
throw new Feed\Exception($this->resource->getUrl(), $e);
|
throw new Feed\Exception($this->resource->getUrl(), $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue