|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-28 00:58 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 10:00:01 2025 UTC |
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