|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75742 potential memleak in internal classes's static members
Submitted: 2017-12-28 08:28 UTC Modified: 2017-12-28 08:28 UTC
From: Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.2.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2017-12-28 08:28 UTC]
in commit f25ecdacf805f840f743b67b6d84485b2deceb4f , the change move zend_cleanup_internal_classes after zend_objects_store_destroy(&EG(objects_store)),which will set EG(objects_store).object_buckets = NULL.

so if we put an object into an internal classes static member table, then the object will be leaked..

as in zend_cleanup_internal_classes it will eventually calls zend_objects_store_del on that object but EG(objects_store).object_buckets is NULL at that moment.

Test script:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-12-28 08:28 UTC]
-Summary: Memleak in internal classes's static members +Summary: potential memleak in internal classes's static members
 [2017-12-28 08:31 UTC]
Automatic comment on behalf of
Log: Fixed bug #75742 (potential memleak in internal classes's static members)
 [2017-12-28 08:31 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 04:01:29 2023 UTC