diff --git a/src/Symfony/Component/Console/Terminal.php b/src/Symfony/Component/Console/Terminal.php index b8cc04e2ec32..5e5a3c2f767d 100644 --- a/src/Symfony/Component/Console/Terminal.php +++ b/src/Symfony/Component/Console/Terminal.php @@ -66,6 +66,11 @@ public static function hasSttyAvailable() return self::$stty; } + // skip check if exec function is disabled + if (!\function_exists('exec')) { + return false; + } + exec('stty 2>&1', $output, $exitcode); return self::$stty = 0 === $exitcode;