From: david dot ruiz at elementstudio dot com dot br
Operating system: RedHat linux 9
PHP version: 4.3.3
PHP Bug Type: DOM XML related
Bug description: PHP 4.3.3 Memory leak.
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.
--
Edit bug report at http://bugs.php.net/?id=25820&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25820&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25820&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25820&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25820&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25820&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25820&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25820&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25820&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25820&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25820&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25820&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25820&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25820&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25820&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25820&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25820&r=float