From: djgrrr at gmail dot com Operating system: * PHP version: 5.1.6 PHP Bug Type: Performance problem Bug description: create_function leaks memory
Description: ------------ The PHP version is actually Irrelevant If you use create_function many times in a script to make lambda functions, it will use more and more memory. Now, I know that this is the expected result, but it would be really good to have a function like free_function or delete_function that could be used to remove the lambda functions, and free up the memory they use. Obviously this function would have to be limited to only lambda function, and it not be possible to use it on normal functions. Personally, I think this is VERY essential to the CLI version of PHP as many CLI PHP programs do not often restart, but keep running, simply rehashing its config and any modules (using lambda functions) -- Edit bug report at http://bugs.php.net/?id=39010&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39010&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39010&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39010&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39010&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39010&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39010&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39010&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39010&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39010&r=support Expected behavior: http://bugs.php.net/fix.php?id=39010&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39010&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39010&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39010&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39010&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39010&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39010&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39010&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39010&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39010&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39010&r=mysqlcfg