php.net |  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: laruence@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.2.0 OS:
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [2017-12-28 08:28 UTC] laruence@php.net
Description:
------------
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:
---------------
none

Expected result:
----------------
none

Actual result:
--------------
none

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-12-28 08:28 UTC] laruence@php.net
-Summary: Memleak in internal classes's static members +Summary: potential memleak in internal classes's static members
 [2017-12-28 08:31 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=650264e360e7cda8b224283dde55673ed022314d
Log: Fixed bug #75742 (potential memleak in internal classes's static members)
 [2017-12-28 08:31 UTC] laruence@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Feb 04 05:01:30 2025 UTC