diff options
author | Urban Müller | 2016-05-31 14:03:07 +0200 |
---|---|---|
committer | Urban Müller | 2016-05-31 14:03:07 +0200 |
commit | 249312dfe570a821df04867909d107fc0bf0567c (patch) | |
tree | 4953e69d03ca068c49233bb52a202ef3f3fbbbd9 | |
parent | cf9871809d88018a49775ea59d1ec58cf2fd4eb5 (diff) | |
download | itools-249312dfe570a821df04867909d107fc0bf0567c.tar.gz itools-249312dfe570a821df04867909d107fc0bf0567c.tar.bz2 itools-249312dfe570a821df04867909d107fc0bf0567c.zip |
STDOUT not defined in web mode; remove obsolete workaround
-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"); |