hhvm
hhvm copied to clipboard
Memory leak on $array+=array()
Here is a simplified test http://3v4l.org/64TZi
Looks like it doesn't leak if you put it in a function. Another workaround: $res = $res + array();
The bug in "+=" was fixed in #3740 though your test case still shows the leak because you're also computing memory consumed jitting the pseudomain, if you memory_get_usage(false) you'll see that the request memory usage is flat (you can also run with the jit off to see the same thing).
:+1: