getBacktrace() public static method

Get relevant backtrace info for last ref call
public static getBacktrace ( ) : array | false
return array | false
示例#1
0
 public function endExp()
 {
     if (ref::config('showBacktrace') && ($trace = ref::getBacktrace())) {
         $this->out .= ' - ' . $trace['file'] . ':' . $trace['line'];
     }
     $this->out .= "\n" . str_repeat('=', strlen($this->out)) . "\n";
 }
示例#2
0
 public function endExp()
 {
     if (ref::config('showBacktrace') && ($trace = ref::getBacktrace())) {
         $this->out .= " " . $trace['file'] . ':' . $trace['line'];
     }
     $this->out .= " \n";
 }
示例#3
0
 public function endExp($disableBacktrace = false)
 {
     if (!$disableBacktrace && ref::config('showBacktrace') && ($trace = ref::getBacktrace())) {
         $this->out .= "<{$this->def['base']} data-backtrace>{$trace['file']}:{$trace['line']}</{$this->def['base']}>";
     }
     $this->out .= "</{$this->def['base']}><{$this->def['base']} data-output>";
 }