PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_RSS » Bug #4099

Serious memory leak

Details

Submitted2005-04-07 21:01 UTC
Frompeter at mysql dot com
Assignedmj
StatusWont fix
PackageXML_RSS
PHP Version4.3.4
OSLinux
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