|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-04 10:30 UTC] rrichards@php.net
[2003-06-04 10:43 UTC] rbro at hotmail dot com
[2003-06-04 10:58 UTC] rrichards@php.net
[2003-06-04 11:56 UTC] rbro at hotmail dot com
[2003-06-04 23:10 UTC] sniper@php.net
[2004-08-27 10:22 UTC] chregu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 07:00:01 2025 UTC |
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(); } ?>