1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 04:23:38 +01:00

[ticket/9790] Add $exit parameter to file_gc().

PHPBB3-9790
This commit is contained in:
Andreas Fischer 2011-01-12 23:55:30 +01:00
parent 78df30f7b7
commit 0f88b847fc

View File

@ -417,15 +417,28 @@ function set_modified_headers($stamp, $browser)
return false;
}
function file_gc()
/**
* Garbage Collection
*
* @param bool $exit Whether to die or not.
*
* @return void
*/
function file_gc($exit = true)
{
global $cache, $db;
if (!empty($cache))
{
$cache->unload();
}
$db->sql_close();
exit;
if ($exit)
{
exit;
}
}
/**