Bug #76982 [Com]: memory leak declaring closure in included file
Edit report at https://bugs.php.net/bug.php?id=76982&edit=1
ID: 76982
Comment by: zoohie at gmail dot com
Reported by: ryan dot brothers at gmail dot com
Summary: memory leak declaring closure in included file
Status: Verified
Type: Bug
Package: Scripting Engine problem
Operating System: Linux
PHP Version: 7.2.10
Block user comment: N
Private report: N
New Comment:
Problem occurs not only with closures but also with anonymous classes.
Previous Comments:
------------------------------------------------------------------------
[2021-03-01 10:44:06] nikic@php.net
This leak is partially fixed in PHP 8.1. There's still a memory leak, but it's a constant
leak of ~250 bytes per overwritten closure now.
------------------------------------------------------------------------
[2021-02-19 17:16:45] nikic@php.net
The following pull request has been associated:
Patch Name: Reference dynamic functions through dynamic_defs
On GitHub: https://github.com/php/php-src/pull/5595
Patch: https://github.com/php/php-src/pull/5595.patch
------------------------------------------------------------------------
[2021-02-19 17:16:06] nikic@php.net
Related To: Bug #80777
------------------------------------------------------------------------
[2020-10-07 18:08:12] nikic@php.net
Related To: Bug #80199
------------------------------------------------------------------------
[2020-09-22 21:27:39] nikic@php.net
Related To: Bug #80140
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76982
--
Edit this bug report at https://bugs.php.net/bug.php?id=76982&edit=1
Thread (10 messages)