|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-13 00:46 UTC] laruence@php.net
-Assigned To:
+Assigned To: laruence
[2012-06-24 10:34 UTC] laruence@php.net
[2012-06-24 10:34 UTC] laruence@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 13:00:01 2025 UTC |
Description: ------------ There seems to be a memory leak using Lua. Test script: --------------- <? $cnt=0; $total=100000; $lastperc=-1; for ($z=0;$z<$total;$z++) { $cnt++; $perc=round($cnt/$total*100); if ($perc!=$lastperc) { echo memory_get_usage(true)." Bytes<br />"; echo $perc."%<br />"; $lastperc=$perc; flush(); } $lua=new Lua(); $r=$lua->eval("return 2+5"); } ?> Expected result: ---------------- I would expect the memory usage not rise indefinitely but instead stay constant. Actual result: -------------- The memory usage keeps increasing.