Bug #52060 [NEW]: Memory leak when passing a closure to method_exists()
| From: | felipe@php.net | Date: | Fri, 11 Jun 2010 22:58:14 +0000 |
| Subject: | Bug #52060 [NEW]: Memory leak when passing a closure to method_exists() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-151358@lists.php.net to get a copy of this message | ||
From: felipe
Operating system: Linux
PHP version: 5.3.2
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Memory leak when passing a closure to method_exists()
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 bug report at http://bugs.php.net/bug.php?id=52060&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52060&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52060&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52060&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52060&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52060&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52060&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52060&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52060&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52060&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52060&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52060&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52060&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52060&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52060&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52060&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52060&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52060&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52060&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52060&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52060&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52060&r=mysqlcfg