BUGFIX: posix_isatty sometimes returns a benign error

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64466 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-10-16 23:17:43 +00:00
parent d3f6b8ec9e
commit f49e2c1ca6

View File

@ -7,7 +7,7 @@
class SSCli extends Object { class SSCli extends Object {
static function supports_colour() { static function supports_colour() {
if(!defined('STDOUT')) define('STDOUT', fopen("php://stdout","w")); if(!defined('STDOUT')) define('STDOUT', fopen("php://stdout","w"));
return posix_isatty(STDOUT); return @posix_isatty(STDOUT);
} }
/** /**
@ -52,4 +52,4 @@ class SSCli extends Object {
} }
} }
?> ?>