Home » XML » XML_RSS » Bug #4099
Serious memory leak
Details
| Submitted | 2005-04-07 21:01 UTC |
|---|---|
| From | peter at mysql dot com |
| Assigned | mj |
| Status | Wont fix |
| Package | XML_RSS |
| PHP Version | 4.3.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-04-07 21:01 UTC] peter at mysql dot com
Description:
------------
RSS parser seems to leak if used many times over and over again. This seems to happen with almost any RSS. Leak is
other 100MB per minute in my case so it is close to being unusable for batch processing.
Reproduce code:
---------------
<?php
require_once "XML/RSS.php";
function test()
{
$rss =& new XML_RSS('/tmp/test.rss');
$rss->parse();
$data=$rss->getStructure();
return $data;
}
while (true)
{
test();
}
?>
test.rss contains http://www.livejournal.com/users/peter_zaitsev/data/rss