|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80174 Memory leak in XML module
Submitted: 2020-10-02 11:28 UTC Modified: 2020-10-05 13:32 UTC
From: prisacari dot dmitrii at gmail dot com Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: 7.4.11 OS: Ubuntu 18.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-10-02 11:28 UTC] prisacari dot dmitrii at gmail dot com
Under certain circumstances the memory limit that is set in PHP configuration is bypassed and a memory leak is present.

I've shared a google drive directory with a demo of the issue and the code to reproduce the issue:

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-05 13:32 UTC]
-Status: Open +Status: Wont fix -Type: Security +Type: Bug
 [2020-10-05 13:32 UTC]
This is memory allocated by libxml over which PHP has no control -- and no, we cannot replace libxml allocation functions because that would conflict with other libxml users that may be loaded into the same process.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 09:01:33 2024 UTC