From 249312dfe570a821df04867909d107fc0bf0567c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 31 May 2016 14:03:07 +0200 Subject: STDOUT not defined in web mode; remove obsolete workaround --- it_debug.class | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 5501353..b0b1598 100644 --- a/it_debug.class +++ b/it_debug.class @@ -79,10 +79,9 @@ static function dump($args) ; else if ($_SERVER['REMOTE_ADDR']) list($blue, $noblue, $htmlok) = array("", "", 1); - else if (posix_isatty(STDOUT)) + else if (defined('STDOUT') && posix_isatty(STDOUT)) list($blue, $noblue, $red, $nored, $ansiok) = getenv('IT_ED_BRIGHT') ? array("\033[34m", "\033[m", "\033[33m", "\033[m", 1) : array("\033[34m", "\033[m", "\033[31m", "\033[m", 1); - @fseek(STDOUT, 0, SEEK_END); # Work around PHP bug 49819: posix_isatty seeks to start $src = it_debug::srcline(1); list($function, $paramlist) = it::match('\b(D|ED|EDC|EDX)\s*\((.*)', $src); $paramtokens = token_get_all("