Bug #14037 Updated: Memory leak in xmldocfile function
| From: | mikep at oeone dot com | Date: | Thu, 29 Nov 2001 14:42:23 +0000 |
| Subject: | Bug #14037 Updated: Memory leak in xmldocfile function | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72021@lists.php.net to get a copy of this message | ||
ID: 14037
User updated by: mikep@oeone.com
Reported By: mikep@oeone.com
Old Status: Feedback
Status: Open
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
As stated, the memory used by Apache sky rockets... On my machine, it goes up to about 90% or so.
We're working on a patch to this bug, we've got the memory leak fixed by closing the file
using a function we wrote, but unfortunately that ended up causing a segfault in Apache.
When we fix that problem, we'll post the fix here.
Previous Comments:
------------------------------------------------------------------------
[2001-11-29 09:38:04] mfischer@php.net
What do you define as 'memory leak' ? Error output in apaches log?
Feedback.
------------------------------------------------------------------------
[2001-11-12 17:01:15] mikep@oeone.com
<?php
echo "starting test ...<p>";
flush();
for ($i=0; $i<100; $i++)
{
$doc = xmldocfile( "SOMEXMLFILE" );
}
echo "test finished";
?>
When this is done on Apache, the memory used by Apache sky rockets. The larger the XML file, the
larger the memory leak.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14037&edit=1