1
0
Fork 0

Only check for safe mode on versions that have it, refs #6300

pull/6337/head
Jordi Boggiano 2017-03-26 14:02:56 +02:00
parent d20494ddf6
commit 72616a9635
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ class Git
public static function cleanEnv()
{
if (ini_get('safe_mode') && false === strpos(ini_get('safe_mode_allowed_env_vars'), 'GIT_ASKPASS')) {
if (PHP_VERSION_ID < 50400 && ini_get('safe_mode') && false === strpos(ini_get('safe_mode_allowed_env_vars'), 'GIT_ASKPASS')) {
throw new \RuntimeException('safe_mode is enabled and safe_mode_allowed_env_vars does not contain GIT_ASKPASS, can not set env var. You can disable safe_mode with "-dsafe_mode=0" when running composer');
}