ID:               25820
 User updated by:  david dot ruiz at elementstudio dot com dot br
 Reported By:      david dot ruiz at elementstudio dot com dot br
 Status:           Open
 Bug Type:         DOM XML related
 Operating System: RedHat linux 9
 PHP Version:      4.3.3
 New Comment:

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();
}
?>


Previous Comments:
------------------------------------------------------------------------

[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? 


------------------------------------------------------------------------

[2003-10-10 09:52:05] david dot ruiz at elementstudio dot com dot br

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 this bug report at http://bugs.php.net/?id=25820&edit=1

Reply via email to