note 37874 added to function.domxml-open-mem
| From: | ejatcampbell*dot*name at rn2 dot php dot net | Date: | Mon, 01 Dec 2003 00:54:59 +0000 |
| Subject: | note 37874 added to function.domxml-open-mem | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61183@lists.php.net to get a copy of this message | ||
The DOM XML parser does not automatically free memory when a DomDocument goes out of scope.
If you're using the DOM parser to parse several XML files as part of a long running script, you
must free the DomDocument manually or a memory leak will occur.
To free a DOM document allocated by domxml_open_mem, do the following:
$doc = domxml_open_mem("$contents");
$doc->free();
----
Manual Page -- http://www.php.net/manual/en/function.domxml-open-mem.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37874
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37874&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37874&report=yes
Search -- http://master.php.net/manage/user-notes.php