summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2022-06-29 15:58:58 +0200
committerUrban Müller2022-06-29 15:58:58 +0200
commit94f9adc2ea3f59aba79b3d2507a1961ae53ecc4a (patch)
tree21b941cd69633bb4652f4405bf27a02e4c62e249
parent68ba08463aa38e9b02d81ed70f3bd06eff776ba5 (diff)
downloaditools-94f9adc2ea3f59aba79b3d2507a1961ae53ecc4a.tar.gz
itools-94f9adc2ea3f59aba79b3d2507a1961ae53ecc4a.tar.bz2
itools-94f9adc2ea3f59aba79b3d2507a1961ae53ecc4a.zip
ED varname output was broken due to new stacklevel it_debug::echo
-rw-r--r--it_debug.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class
index c4bc8db..66eb09b 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -113,7 +113,7 @@ static function dump($args, $p = [])
else if (defined('STDOUT') && posix_isatty(STDOUT) && $p['color'])
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);
- $src = it_debug::srcline(1);
+ $src = it_debug::srcline(2);
list($dummy, $function, $paramlist) = preg_match('#\b(D|ED|EDC|EDX)\s*\((.*)#i', $src, $parts) ? $parts : array();
$paramtokens = token_get_all("<?php $paramlist");
array_shift($paramtokens);