|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
22 + 29 = ?
Subscribe to this entry?

 [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: Mon Dec 04 14:01:28 2023 UTC