summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_debug.class b/it_debug.class
index d8f45cf..b7213d5 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -95,6 +95,7 @@ function dump($args)
$nored = "\033[m";
}
+ @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");