diff options
Diffstat (limited to 'it.class')
-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; |