|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: prisacari dot dmitrii at gmail dot com
New email:
PHP Version: OS:


 [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-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 19:05:53 2022 UTC