Bug #76874 [NEW]: Documentation of memory leak in Xml Parser
| From: | ksours at internetbrands dot com | Date: | Wed, 12 Sep 2018 16:01:38 +0000 |
| Subject: | Bug #76874 [NEW]: Documentation of memory leak in Xml Parser | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-15983@lists.php.net to get a copy of this message | ||
From: ksours at internetbrands dot com
Operating system: Windows
PHP version: 7.3.0beta3
Package: Documentation problem
Bug Type: Bug
Bug description:Documentation of memory leak in Xml Parser
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 bug report at https://bugs.php.net/bug.php?id=76874&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76874&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76874&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76874&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76874&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76874&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76874&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76874&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76874&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76874&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76874&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76874&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76874&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76874&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76874&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76874&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76874&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76874&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76874&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76874&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76874&r=mysqlcfg