php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49365 Memory leak in create_function()
Submitted: 2009-08-25 19:26 UTC Modified: 2009-08-25 19:31 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: pearl1985 at interia dot pl Assigned:
Status: Closed Package: *Programming Data Structures
PHP Version: 5.3.0 OS: Windows XP x64
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:
MUST BE VALID
Solve the problem:
27 + 38 = ?
Subscribe to this entry?

 
 [2009-08-25 19:26 UTC] pearl1985 at interia dot pl
Description:
------------
Looping create_function() leaks memory even if you unset the object.

Reproduce code:
---------------
<?
while(true)
{
	$var = create_function('', '$a = 0;');
	unset($var);
}
?>

Expected result:
----------------
No increase in memory usage.

Actual result:
--------------
Grows around 100-150meg per sec.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-25 19:31 UTC] pearl1985 at interia dot pl
I readed this http://bugs.php.net/bug.php?id=6333

Closed.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Apr 04 10:01:25 2020 UTC