|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-10-10 09:52 UTC] david dot ruiz at elementstudio dot com dot br
Description:
------------
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:
---------------
<?
for($c=0;$c<60;$c++){
$xmlQueue = domxml_new_doc("1.0");
$xmlQueue_root = $xmlQueue->create_element("queue_out");
$xmlQueue->append_child($xmlQueue_root);
$str = $c."s\n";
echo $str;
sleep(1);
unset($str);
unset($xmlQueue_root);
unset($xmlQueue);
}
?>
Expected result:
----------------
No memory overflow.
Actual result:
--------------
The memory used by php is growing without stopping.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 28 20:00:01 2025 UTC |
With this modification i can use the "$xmlQueue->free()" function. <? for($c=0;$c<99999999;$c++){ $xmlQueue = domxml_new_doc("1.0"); $xmlQueue_root = $xmlQueue->create_element("queue_out"); $xmlQueue->append_child($xmlQueue_root); $str = $c."sn"; echo $str; sleep(1); unset($str); $xmlQueue->free(); } ?>