Bug #76874 [Opn->Ver]: Documentation of memory leak in Xml Parser
Edit report at https://bugs.php.net/bug.php?id=76874&edit=1
ID: 76874
Updated by: cmb@php.net
Reported by: ksours at internetbrands dot com
Summary: Documentation of memory leak in Xml Parser
-Status: Open
+Status: Verified
Type: Bug
Package: Documentation problem
Operating System: Windows
PHP Version: 7.3.0beta3
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> [â¦] but I assume there is some reason why this is not feasible
See bug #72793.
Previous Comments:
------------------------------------------------------------------------
[2018-09-12 16:01:37] ksours at internetbrands dot com
Description:
------------
There is a note on the xml_set_object that you need to unset the xml resource variable to avoid
memory leaks. This *really* needs to be more prominent. It's possible to hit this condition
in code that does not call xml_set_object and that's not the obvious place to look for
information on why xml_parser_free isn't working correctly.
Recommend at a minimum that a similar not be placed on the xml_parser_free entry. (Ideally calling
xml_parser_free *should* be sufficient to avoid holding that memory in place but I assume there is
some reason why this is not feasible).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76874&edit=1
Thread (4 messages)