You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
function test() {
echo memory_get_usage() . "\n";
$memcache_obj = new Memcache();
$memcache_obj->addServer('memcached.local' , 11211);
echo memory_get_usage() . "\n";
// None of this seems to make a difference.
//$memcache_obj->close();
//unset($memcache_obj);
}
while (true) {
test();
sleep(1);
}
There appears to be a memory leak:
Sample Code:
Actual Output:
Expected Output:
The text was updated successfully, but these errors were encountered: