1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00

Make 'arc' work for users without the POSIX PHP installed.

Summary: Some PHP installs don't have this by default. Do a conditional check
since this functionality is noncritical.

Test Plan: will make srash test

Reviewers: rash67, aran, jungejason

CC:

Differential Revision: 43
This commit is contained in:
epriestley 2011-03-02 19:31:40 -08:00
parent d01dc4df37
commit f1b2cfa3f6

View file

@ -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);
}