<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=XML_HTMLSax3</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/12666" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/12666">
      <title>XML_HTMLSax3: Bug 12666 [Open] memory leak when instantiating new parsers?</title>
      <link>http://pear.php.net/bugs/12666</link>
      <content:encoded><![CDATA[<pre>XML_HTMLSax3 Bug
Reported by silver
2007-12-11T23:00:25+00:00
PHP: 5.2.4 OS: Debian GNU/Linux 4.0 Package Version: 3.0.0

Description:
------------
instantiating new parsers repeatedly leaks memory, even if the parsers are unset

Test script:
---------------
require_once 'XML/HTMLSax3.php';
function parse($doc) {
    static $parser;
    if (!isset($parser)) $parser = new XML_HTMLSax3();
    $parser-&gt;parse($doc);
}
function parse2($doc) {
    $parser = new XML_HTMLSax3();
    $parser-&gt;parse($doc);
    unset($parser);
}
$s = &quot;blah&quot;;
$start_mem = memory_get_usage(true);
for ($i = 0; $i &lt; 1000; $i++) parse($s);
$mem_diff = memory_get_usage(true) - $start_mem;
print &quot;1000 iterations with static parser, memory diff &quot; . (memory_get_usage(true) - $start_mem) . &quot;\n&quot;;
$start_mem = memory_get_usage(true);
for ($i = 0; $i &lt; 1000; $i++) parse2($s);
$mem_diff = memory_get_usage(true) - $start_mem;
print &quot;1000 iterations with new parser each time, memory diff &quot; . (memory_get_usage(true) - $start_mem) . &quot;\n&quot;;


Expected result:
----------------
1000 iterations with static parser, memory diff 0
1000 iterations with new parser each time, memory diff 0


Actual result:
--------------
1000 iterations with static parser, memory diff 0
1000 iterations with new parser each time, memory diff 4456448</pre>]]></content:encoded>
      <description><![CDATA[<pre>XML_HTMLSax3 Bug
Reported by silver
2007-12-11T23:00:25+00:00
PHP: 5.2.4 OS: Debian GNU/Linux 4.0 Package Version: 3.0.0

Description:
------------
instantiating new parsers repeatedly leaks memory, even if the parsers are unset

Test script:
---------------
require_once 'XML/HTMLSax3.php';
function parse($doc) {
    static $parser;
    if (!isset($parser)) $parser = new XML_HTMLSax3();
    $parser-&gt;parse($doc);
}
function parse2($doc) {
    $parser = new XML_HTMLSax3();
    $parser-&gt;parse($doc);
    unset($parser);
}
$s = &quot;blah&quot;;
$start_mem = memory_get_usage(true);
for ($i = 0; $i &lt; 1000; $i++) parse($s);
$mem_diff = memory_get_usage(true) - $start_mem;
print &quot;1000 iterations with static parser, memory diff &quot; . (memory_get_usage(true) - $start_mem) . &quot;\n&quot;;
$start_mem = memory_get_usage(true);
for ($i = 0; $i &lt; 1000; $i++) parse2($s);
$mem_diff = memory_get_usage(true) - $start_mem;
print &quot;1000 iterations with new parser each time, memory diff &quot; . (memory_get_usage(true) - $start_mem) . &quot;\n&quot;;


Expected result:
----------------
1000 iterations with static parser, memory diff 0
1000 iterations with new parser each time, memory diff 0


Actual result:
--------------
1000 iterations with static parser, memory diff 0
1000 iterations with new parser each time, memory diff 4456448</pre>]]></description>
      <dc:date>2008-10-26T13:36:07+00:00</dc:date>
      <dc:creator>silverkitty23 &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>XML_HTMLSax3 Bug</dc:subject>
    </item>
</rdf:RDF>
