1
0
Fork 0

Also detect full temp dir, fixes #3559

pull/3562/head
Jordi Boggiano 2014-12-15 20:21:53 +00:00
parent bf6453707b
commit 0c87048fed
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ class Application extends BaseApplication
$minSpaceFree = 1024*1024;
if ((($df = @disk_free_space($dir = $config->get('home'))) !== false && $df < $minSpaceFree)
|| (($df = @disk_free_space($dir = $config->get('vendor-dir'))) !== false && $df < $minSpaceFree)
|| (($df = @disk_free_space($dir = sys_get_temp_dir())) !== false && $df < $minSpaceFree)
) {
$output->writeln('<error>The disk hosting '.$dir.' is full, this may be the cause of the following exception</error>');
}