diff options
author | Nathan Gass | 2022-09-22 15:33:54 +0200 |
---|---|---|
committer | Nathan Gass | 2022-09-22 15:33:54 +0200 |
commit | db1167432631c348125ec45b3bc6d5fb1f0dc54a (patch) | |
tree | fcf967084b94e9c27f94707d567e43ea56437664 | |
parent | 7a5d99f89b99e1c5bb374887399b1b1ad6042262 (diff) | |
download | itools-db1167432631c348125ec45b3bc6d5fb1f0dc54a.tar.gz itools-db1167432631c348125ec45b3bc6d5fb1f0dc54a.tar.bz2 itools-db1167432631c348125ec45b3bc6d5fb1f0dc54a.zip |
Revert "still need stackoffs=1 for use of D()"
This reverts commit 960842296e3cb38f00be2f83dd37aa12dd4aef4e.
-rw-r--r-- | auto_prepend.php | 2 | ||||
-rw-r--r-- | it_debug.class | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/auto_prepend.php b/auto_prepend.php index 971e977..19108fb 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -7,7 +7,7 @@ */ function D(...$args) { - return it_debug::dump($args, ['stackoffs' => 1]); + return it_debug::dump($args); } /** diff --git a/it_debug.class b/it_debug.class index 01b7d5e..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($p['stackoffs'] ?: 2); + $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); |