|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25820 PHP 4.3.3 Memory leak.
Submitted: 2003-10-10 09:52 UTC Modified: 2003-10-12 22:17 UTC
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: david dot ruiz at elementstudio dot com dot br Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.3.3 OS: RedHat linux 9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: david dot ruiz at elementstudio dot com dot br
New email:
PHP Version: OS:


 [2003-10-10 09:52 UTC] david dot ruiz at elementstudio dot com dot br
The memory used by php to run to the folowing script is growing without stopping....

I tried php snaps... but the problem was not solved. 

Reproduce code:
        $xmlQueue = domxml_new_doc("1.0");
        $xmlQueue_root = $xmlQueue->create_element("queue_out");
        $str = $c."s\n";
        echo $str;

Expected result:
No memory overflow.

Actual result:
The memory used by php is growing without stopping. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-10 11:37 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

..why wouldn't it grow? 

 [2003-10-11 10:07 UTC] david dot ruiz at elementstudio dot com dot br
With this modification i can use the "$xmlQueue->free()" function.

        $xmlQueue = domxml_new_doc("1.0");
        $xmlQueue_root = $xmlQueue->create_element("queue_out");
        $str = $c."sn";
        echo $str;
 [2003-10-12 22:17 UTC]
$xmlQueue->free(); works fine without any modifications to
PHP 4.3.3 sources. (and definately works fine with latest STABLE CVS snapshot)

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 00:01:23 2021 UTC