8000 Merge branch '3.4' into 4.4 · symfony/symfony@659699b · GitHub
[go: up one dir, main page]

Skip to content

Commit 659699b

Browse files
Merge branch '3.4' into 4.4
* 3.4: [Console] Do not check for "stty" using "exec" if that function is disabled
2 parents b9354dc + 9f6acd5 commit 659699b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/Console/Terminal.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public static function hasSttyAvailable()
6666
return self::$stty;
6767
}
6868

69+
// skip check if exec function is disabled
70+
if (!\function_exists('exec')) {
71+
return false;
72+
}
73+
6974
exec('stty 2>&1', $output, $exitcode);
7075

7176
return self::$stty = 0 === $exitcode;

0 commit comments

Comments
 (0)
0