|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52060 Memory leak when passing a closure to method_exists()
Submitted: 2010-06-12 00:58 UTC Modified: 2010-06-12 01:20 UTC
From: Assigned: felipe (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2010-06-12 00:58 UTC]
See below.

Test script:
var_dump(method_exists('closure', '__invoke'));

Actual result:
/home/felipe/dev/phptrunk/Zend/zend_closures.c(136) :  Freeing 0x08C374D4 (9 bytes), script=-
[Fri Jun 11 19:57:03 2010]  Script:  '-'
/home/felipe/dev/phptrunk/Zend/zend_closures.c(128) :  Freeing 0x08C37F68 (164 bytes), script=-
=== Total 2 memory leaks detected ===


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-12 00:58 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: felipe
 [2010-06-12 01:20 UTC]
Automatic comment from SVN on behalf of felipe
Log: - Fixed bug #52060 (Memory leak when passing a closure to method_exists())
 [2010-06-12 01:20 UTC]
-Status: Assigned +Status: Closed
 [2010-06-12 01:20 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Aug 12 03:05:46 2022 UTC