[PHP-DEV] Bug #11304 Updated: memory leak

2001-08-20 Thread sniper

ID: 11304
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: DOM XML related
Operating System: RHat 6.2
PHP Version: 4.0.5
New Comment:

No feedback. Reopen if you still have this problem
with PHP 4.0.7 (soon to be released) or with latest CVS 
snapshot from http://snaps.php.net/

Side note: The libxml version required now is libxml2-2.4.2

--Jani


Previous Comments:


[2001-07-17 10:49:21] [EMAIL PROTECTED]

This is great. Do you have a test case for this bug?



[2001-06-06 02:18:52] [EMAIL PROTECTED]

This (I think) is a new bug with libxml2.so (libxml2-2.3.9-1)



[2001-06-06 02:15:56] [EMAIL PROTECTED]

php_domxml.c, line #698

The pointer (content) from xmlNodeGetContent(last); needs to be freed.  There's still 
another memory leak in domxml but it leaks much slower now.  To my version of the file 
I added:

if (content) {
add_property_stringl(child, "content", (char *) content, strlen(content), 1);
free(content);
}

directly beneath it.






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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11304 Updated: memory leak

2001-07-17 Thread joey

ID: 11304
Updated by: joey
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: RHat 6.2
PHP Version: 4.0.5
New Comment:

This is great. Do you have a test case for this bug?

Previous Comments:


[2001-06-06 02:18:52] [EMAIL PROTECTED]

This (I think) is a new bug with libxml2.so (libxml2-2.3.9-1)



[2001-06-06 02:15:56] [EMAIL PROTECTED]

php_domxml.c, line #698

The pointer (content) from xmlNodeGetContent(last); needs to be freed.  There's still 
another memory leak in domxml but it leaks much slower now.  To my version of the file 
I added:

if (content) {
add_property_stringl(child, "content", (char *) content, strlen(content), 1);
free(content);
}

directly beneath it.






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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]