1
0
Fork 0

Convert exception to a warning, refs #5205

pull/5215/merge
Jordi Boggiano 2016-04-19 11:00:39 +01:00
parent fa5c73f0d8
commit 89cfde051d
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class Application extends BaseApplication
Silencer::call(function() { Silencer::call(function() {
$tempfile = sys_get_temp_dir() . '/temp-' . md5(microtime()); $tempfile = sys_get_temp_dir() . '/temp-' . md5(microtime());
if (!(file_put_contents($tempfile, __FILE__) && (file_get_contents($tempfile) == __FILE__) && unlink($tempfile) && !file_exists($tempfile))) { if (!(file_put_contents($tempfile, __FILE__) && (file_get_contents($tempfile) == __FILE__) && unlink($tempfile) && !file_exists($tempfile))) {
throw new \RuntimeException(sprintf('PHP temp directory "%s" does not exist or is not writable to Composer - check sys_temp_dir in your php.ini', sys_get_temp_dir())); $io->writeError(sprintf('<error>PHP temp directory (%s) does not exist or is not writable to Composer. Set sys_temp_dir in your php.ini</error>', sys_get_temp_dir()));
} }
}); });