ID: 25820 Updated by: [EMAIL PROTECTED] Reported By: david dot ruiz at elementstudio dot com dot br -Status: Open +Status: Bogus Bug Type: DOM XML related Operating System: RedHat linux 9 PHP Version: 4.3.3 New Comment:
$xmlQueue->free(); works fine without any modifications to PHP 4.3.3 sources. (and definately works fine with latest STABLE CVS snapshot) Previous Comments: ------------------------------------------------------------------------ [2003-10-11 10:07:40] david dot ruiz at elementstudio dot com dot br 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(); } ?> ------------------------------------------------------------------------ [2003-10-10 20:05:55] david dot ruiz at elementstudio dot com dot br Ok! ------------------------------------------------------------------------ [2003-10-10 13:44:57] luiz dot pestana at elementstudio dot com dot br I solved the problem by adding the declaration of function "domxml_doc_free_doc" in the file "ext/domxml/php_domxml.c". 260 - PHP_FE(domxml_parser_end_document, NULL) 261 - PHP_FE(domxml_parser_get_document, NULL) 262 - PHP_FE(domxml_doc_free_doc, NULL) // here ------------------------------------------------------------------------ [2003-10-10 13:29:48] david dot ruiz at elementstudio dot com dot br Every time i use unset on a xml object, it doesn't clean (delete) from the memory ... every time i create a xml, it increases the used memory. I've found some articles that talk about it, but the solution given only applies to the version 4.0.6. http://bugs.php.net/bug.php?id=14037 ------------------------------------------------------------------------ [2003-10-10 11:37:42] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. ..why wouldn't it grow? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25820 -- Edit this bug report at http://bugs.php.net/?id=25820&edit=1