Edit report at http://bugs.php.net/bug.php?id=52060&edit=1

 ID:               52060
 Updated by:       fel...@php.net
 Reported by:      fel...@php.net
 Summary:          Memory leak when passing a closure to method_exists()
-Status:           Assigned
+Status:           Closed
 Type:             Bug
 Package:          Scripting Engine problem
 Operating System: Linux
 PHP Version:      5.3.2
 Assigned To:      felipe

 New Comment:

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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2010-06-12 01:20:16] fel...@php.net

Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=300392
Log: - Fixed bug #52060 (Memory leak when passing a closure to
method_exists())

------------------------------------------------------------------------
[2010-06-12 00:58:14] fel...@php.net

Description:
------------
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 ===




------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52060&edit=1

Reply via email to