Bug #75742 [Opn->Csd]: potential memleak in internal classes's static members

From: Date: Thu, 28 Dec 2017 08:31:57 +0000
Subject: Bug #75742 [Opn->Csd]: potential memleak in internal classes's static members
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213304@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75742&edit=1 ID: 75742 Updated by: laruence@php.net Reported by: laruence@php.net Summary: potential memleak in internal classes's static members -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 7.2.0 Block user comment: N Private report: N New Comment: 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) Previous Comments: ------------------------------------------------------------------------ [2017-12-28 08:28:11] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75742&edit=1

« previous php.bugs (#213304) next »