Bug #75742 [NEW]: Memleak in internal classes's static members

From: Date: Thu, 28 Dec 2017 08:28:13 +0000
Subject: Bug #75742 [NEW]: Memleak in internal classes's static members
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213303@lists.php.net to get a copy of this message
From: laruence Operating system: PHP version: 7.2.0 Package: Scripting Engine problem Bug Type: Bug Bug description:Memleak in internal classes's static members 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 bug report at https://bugs.php.net/bug.php?id=75742&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75742&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75742&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75742&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75742&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75742&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75742&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75742&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75742&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75742&r=support Expected behavior: https://bugs.php.net/fix.php?id=75742&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75742&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75742&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75742&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75742&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75742&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75742&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75742&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75742&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75742&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75742&r=mysqlcfg

« previous php.bugs (#213303) next »