|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
13 + 21 = ?
Subscribe to this entry?

 [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: Wed Aug 10 16:03:35 2022 UTC