diff options
author | Nathan Gass | 2022-09-22 15:34:17 +0200 |
---|---|---|
committer | Nathan Gass | 2022-09-22 15:34:17 +0200 |
commit | d1522ded3aa85221d8f2671164564ea691aefecc (patch) | |
tree | 5b3631c6901d72fda6ab7d6b7d575c6974b9ab18 /it_debug.class | |
parent | db1167432631c348125ec45b3bc6d5fb1f0dc54a (diff) | |
download | itools-d1522ded3aa85221d8f2671164564ea691aefecc.tar.gz itools-d1522ded3aa85221d8f2671164564ea691aefecc.tar.bz2 itools-d1522ded3aa85221d8f2671164564ea691aefecc.zip |
Revert "ED varname output was broken due to new stacklevel it_debug::echo"
This reverts commit 94f9adc2ea3f59aba79b3d2507a1961ae53ecc4a.
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 66eb09b..c4bc8db 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(2); + $src = it_debug::srcline(1); 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); |