From 0c87048fedea9de8c64530019eb81dd40882f278 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 15 Dec 2014 20:21:53 +0000 Subject: [PATCH] Also detect full temp dir, fixes #3559 --- src/Composer/Console/Application.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 8e49eedb5..1c8246f88 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -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('The disk hosting '.$dir.' is full, this may be the cause of the following exception'); }