Bug #52060 [Asn->Csd]: Memory leak when passing a closure to method_exists()

From: Date: Fri, 11 Jun 2010 23:20:31 +0000
Subject: Bug #52060 [Asn->Csd]: Memory leak when passing a closure to method_exists()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151360@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52060&edit=1 ID: 52060 Updated by: felipe@php.net Reported by: felipe@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] felipe@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] felipe@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

« previous php.bugs (#151360) next »