From ac64ca1b5bd9e888b9af43bddaf8e2d8a4dd8dd7 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 24 Mar 2021 23:43:22 +0100 Subject: correcly use override traces for long stackdump (ultraexceptionhandler case) --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') 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; -- cgit v1.2.3