Bug #14037 Updated: Memory leak in xmldocfile function

From: Date: Thu, 29 Nov 2001 14:48:25 +0000
Subject: Bug #14037 Updated: Memory leak in xmldocfile function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72023@lists.php.net to get a copy of this message
ID: 14037
Updated by: mfischer
Reported By: mikep@oeone.com
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

By patching what? ext/domxml?

FYI, apache doesn't release memory it once grabs. Thats how it works.

Feedback.

Previous Comments:
------------------------------------------------------------------------

[2001-11-29 09:42:22] mikep@oeone.com

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.

------------------------------------------------------------------------

[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



Thread (9 messages)

« previous php.dev (#72023) next »