diff options
-rw-r--r-- | it_debug.class | 3 |
1 files changed, 1 insertions, 2 deletions
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("<span style='color:#00c'>", "</span>", 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("<?php $paramlist"); |