Also detect full temp dir, fixes #3559

main
Jordi Boggiano 10 years ago
parent bf6453707b
commit 0c87048fed

@ -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>');
}

Loading…
Cancel
Save