From: rbro at hotmail dot com Operating system: RedHat 7.3 PHP version: 4.3.2 PHP Bug Type: DOM XML related Bug description: DomXML free() not free'ing memory
While the following script is running, the RAM usage increases greatly when it should just remain relatively constant because free() is being used. Upon further investigation, if I comment out the $xpath line, the RAM usage remains constant, so it's something with creating/using a xpath object and then trying to free the entire domxml object later. <?php $xml = '<root><a></a></root>'; for ($i = 1; $i <= 50000; $i++) { $dom = domxml_open_mem($xml); $xpath = xpath_new_context($dom); $dom->free(); } ?> -- Edit bug report at http://bugs.php.net/?id=24015&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24015&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24015&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24015&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24015&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24015&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24015&r=support Expected behavior: http://bugs.php.net/fix.php?id=24015&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24015&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24015&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24015&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24015&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24015&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24015&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24015&r=gnused