summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2009-12-30 14:08:13 +0000
committerChristian Schneider2009-12-30 14:08:13 +0000
commitb3228a3ff580abd3ea33b37a349d48617285e29a (patch)
treef569d4132c0fb8e3a798fc87eb823999452e8d72 /it.class
parent035e1e94288ce0604765819d503ae88066e95282 (diff)
downloaditools-b3228a3ff580abd3ea33b37a349d48617285e29a.tar.gz
itools-b3228a3ff580abd3ea33b37a349d48617285e29a.tar.bz2
itools-b3228a3ff580abd3ea33b37a349d48617285e29a.zip
Work around PHP bug 49819: posix_isatty seeks to start
Diffstat (limited to 'it.class')
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it.class b/it.class
index 17f5658..8a6b8d7 100644
--- a/it.class
+++ b/it.class
@@ -155,6 +155,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate
@chmod("/tmp/alertdata", 0777);
$toscreen = ini_get('display_errors') || (defined("STDOUT") && posix_isatty(STDOUT)) || EDC('astwin') || EDC('asdevel');
+ @fseek(STDOUT, 0, SEEK_END); # Work around PHP bug 49819: posix_isatty seeks to start
if ($toscreen && !it::is_live())
$GLOBALS['debug_noredir'] = 1;