php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15446 memory leak with xmldoc
Submitted: 2002-02-08 06:17 UTC Modified: 2002-06-18 19:19 UTC
From: jparneodo at yahoo dot fr Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.1.1 OS: RedHat7.1
Private report: No CVE-ID: None
 [2002-02-08 06:17 UTC] jparneodo at yahoo dot fr
Use a small xml string and start this code
and look at your memory server, I've 150Mb
before the end of the loops :-(
Of course, I've the same result with a few loops
an big xml data.

for($j=1;$j<=20;$j++){
	for($i=1;$i<=1000;$i++){
		xmldoc($xml);
		echo "<br>loop $j:$i\n";
	}
	sleep(2);
}

Is it a memory leak?
Or a feature to add like xmldocfree()?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-08 06:40 UTC] mfischer@php.net
That's a feature request and actually a duplicate (don't know the # of the other report). There was even a patch supplied (but last time I tested [=months ago ;)]) I had some problems with it.
 [2002-06-18 19:19 UTC] sniper@php.net
Just add your comments to the existing report.

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 20 11:01:30 2019 UTC