ID:               46190
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vamphouse at yandex dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: win32
 PHP Version:      5.2.6
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See the optional parameter, http://docs.php.net/memory-get-usage


Previous Comments:
------------------------------------------------------------------------

[2008-09-27 23:08:41] vamphouse at yandex dot ru

Description:
------------
create_function memleak

Reproduce code:
---------------
for($i = 0; $i < 1; $i ++ ){
        $s1 = memory_get_usage();
        $lambda = create_function('$hello', ' return "hello". ($hello); ');
        $lambda('Gordeev Yuri!');
        unset($lambda);
        $s2 = memory_get_usage();
}

print ($s2-$s1);


Expected result:
----------------
0

Actual result:
--------------
print ($s2-$s1); // 2232


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


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

Reply via email to