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 cae6de6 commit 935afe6Copy full SHA for 935afe6
src/Symfony/Component/Process/Process.php
@@ -792,6 +792,9 @@ public function setTty($tty)
792
if ('\\' === DIRECTORY_SEPARATOR && $tty) {
793
throw new RuntimeException('TTY mode is not supported on Windows platform.');
794
}
795
+ if ($tty && (!file_exists('/dev/tty') || !is_readable('/dev/tty'))) {
796
+ throw new RuntimeException('TTY mode requires /dev/tty to be readable.');
797
+ }
798
799
$this->tty = (bool) $tty;
800
0 commit comments