#26057 [Opn->WFx]: domxml_xmltree leaks

From: Date: Mon, 03 Nov 2003 10:23:41 +0000
Subject: #26057 [Opn->WFx]: domxml_xmltree leaks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49874@lists.php.net to get a copy of this message
 ID:               26057
 Updated by:       moriyoshi@php.net
 Reported By:      bs@php.net
-Status:           Open
+Status:           Wont fix
 Bug Type:         DOM XML related
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

As ZendEngine1 doesn't provide capability for its extensions to track
the lifetime of the userland object that wraps an underlying libxml
object, such objects can  never be destroyed during the session
(request) at the right time.


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

[2003-11-03 05:09:29] bs@php.net

reopened

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

[2003-11-01 07:40:25] bs@php.net

i wonder if you could reproduce it with "while(1) 'foo';" ... there is
no free method but the last line of PHP_FUNCTION(domxml_xmltree) is
/*	xmlFreeDoc(docp); */
so that might be the problem

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

[2003-11-01 06:05:13] sniper@php.net

Yeah, I can reproduce this with: "php -r 'while(1) $i.="foo";' 
so I wouldn't call it a bug..

IIRC, there's a 'free()' method in the domxml stuff now, you should use
that.


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

[2003-10-31 10:03:19] bs@php.net

Description:
------------
domxml_xmltree seams to have a memory leak at least with libxml 2.5.11

Reproduce code:
---------------
php -r "while(1) xmltree('<foo />');"

Actual result:
--------------
process crashes because of exceeded memory limit


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


-- 
Edit this bug report at http://bugs.php.net/?id=26057&edit=1


Thread (5 messages)

« previous php.bugs (#49874) next »