Bug #76874 [Opn->Ver]: Documentation of memory leak in Xml Parser

From: Date: Wed, 12 Sep 2018 17:26:05 +0000
Subject: Bug #76874 [Opn->Ver]: Documentation of memory leak in Xml Parser
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15984@lists.php.net to get a copy of this message
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)

« previous php.doc.bugs (#15984) next »