| @@ 97-109 (lines=13) @@ | ||
| 94 | $args = isset($trace['args']) && count($trace['args']) > 4 ? ' <br />' . $args . '<br />' : $args; |
|
| 95 | $line = isset($trace['line']) ? $trace['line'] : ''; |
|
| 96 | $zebra = $nmbr % 2 !== 0 ? ' odd' : ''; |
|
| 97 | if (empty($file) && ! empty($class)) { |
|
| 98 | $a = new ReflectionClass($class); |
|
| 99 | $file = $a->getFileName(); |
|
| 100 | if (empty($line) && ! empty($function)) { |
|
| 101 | try { |
|
| 102 | //if $function is a closure, this throws an exception |
|
| 103 | $b = new ReflectionMethod($class, $function); |
|
| 104 | $line = $b->getStartLine(); |
|
| 105 | } catch (Exception $closure_exception) { |
|
| 106 | $line = 'unknown'; |
|
| 107 | } |
|
| 108 | } |
|
| 109 | } |
|
| 110 | if ($nmbr === $last_on_stack) { |
|
| 111 | $file = $exception->getFile() !== '' ? $exception->getFile() : $file; |
|
| 112 | $line = $exception->getLine() !== '' ? $exception->getLine() : $line; |
|
| @@ 372-384 (lines=13) @@ | ||
| 369 | $args = isset($trace['args']) ? $this->_convert_args_to_string($trace['args']) : ''; |
|
| 370 | $line = isset($trace['line']) ? $trace['line'] : ''; |
|
| 371 | $zebra = ($nmbr % 2) ? ' odd' : ''; |
|
| 372 | if (empty($file) && ! empty($class)) { |
|
| 373 | $a = new ReflectionClass($class); |
|
| 374 | $file = $a->getFileName(); |
|
| 375 | if (empty($line) && ! empty($function)) { |
|
| 376 | try { |
|
| 377 | //if $function is a closure, this throws an exception |
|
| 378 | $b = new ReflectionMethod($class, $function); |
|
| 379 | $line = $b->getStartLine(); |
|
| 380 | } catch (Exception $closure_exception) { |
|
| 381 | $line = 'unknown'; |
|
| 382 | } |
|
| 383 | } |
|
| 384 | } |
|
| 385 | if ($nmbr === $last_on_stack) { |
|
| 386 | $file = $ex['file'] !== '' ? $ex['file'] : $file; |
|
| 387 | $line = $ex['line'] !== '' ? $ex['line'] : $line; |
|