summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2021-03-24 23:43:22 +0100
committerUrban Müller2021-03-24 23:43:22 +0100
commitac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7 (patch)
tree79f636814ae090191af7781d8c01245103b0a11d /it.class
parent04961c81d7923f23d3074274793a677d57502bf6 (diff)
downloaditools-ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7.tar.gz
itools-ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7.tar.bz2
itools-ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7.zip
correcly use override traces for long stackdump (ultraexceptionhandler case)
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 9a4cf86..9dc1960 100644
--- a/it.class
+++ b/it.class
@@ -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;