diff --git a/scripts/arcanist.php b/scripts/arcanist.php index c3ec4308..b456a4c2 100755 --- a/scripts/arcanist.php +++ b/scripts/arcanist.php @@ -55,7 +55,8 @@ foreach ($args as $key => $arg) { } } -if (!posix_isatty(STDOUT)) { +// The POSIX extension is not available by default in some PHP installs. +if (function_exists('posix_isatty') && !posix_isatty(STDOUT)) { PhutilConsoleFormatter::disableANSI(true); }