We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6166fc4 commit f653612Copy full SHA for f653612
src/Symfony/Component/Console/Terminal.php
@@ -65,7 +65,8 @@ public static function hasSttyAvailable(): bool
65
}
66
67
// skip check if exec function is disabled
68
- if (!\function_exists('exec')) {
+ // shell_exec is very often used in the codebase after a Terminal::hasSttyAvailable() check, which can lead to a "Call to undefined function" error.
69
+ if (!\function_exists('exec') || !\function_exists('shell_exec')) {
70
return false;
71
72
0 commit comments