diff options
author | Urban Müller | 2021-03-24 23:43:22 +0100 |
---|---|---|
committer | Urban Müller | 2021-03-24 23:43:22 +0100 |
commit | ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7 (patch) | |
tree | 79f636814ae090191af7781d8c01245103b0a11d | |
parent | 04961c81d7923f23d3074274793a677d57502bf6 (diff) | |
download | itools-ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7.tar.gz itools-ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7.tar.bz2 itools-ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7.zip |
correcly use override traces for long stackdump (ultraexceptionhandler case)
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -276,7 +276,7 @@ static function error($p = array(), $extra = null) if (!$p['omitdebuginfo']) { - foreach (($trace ? debug_backtrace() : array()) as $level => $stackframe) + foreach (($trace ? ($p['trace'] ?: debug_backtrace()) : []) as $level => $stackframe) if ($level >= $p['backtraceskip'] && $tracesize < 100000 && ($tracesize += strlen(print_r($stackframe, true))) < 100000) # save mem $stackframes[] = $stackframe; |