From f49e2c1ca6f19b19b07c87af7f4aa0798a12f09a Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 16 Oct 2008 23:17:43 +0000 Subject: [PATCH] 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 --- dev/SSCli.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/SSCli.php b/dev/SSCli.php index f0db50a2d..3704e6f73 100644 --- a/dev/SSCli.php +++ b/dev/SSCli.php @@ -7,7 +7,7 @@ class SSCli extends Object { static function supports_colour() { 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 { } } -?> \ No newline at end of file +?>