@@ 385-392 (lines=8) @@ | ||
382 | $line = isset( $trace['line'] ) ? $trace['line'] : ''; |
|
383 | $zebra = $nmbr % 2 ? ' odd' : ''; |
|
384 | ||
385 | if ( empty( $file ) && ! empty( $class )) { |
|
386 | $a = new ReflectionClass( $class ); |
|
387 | $file = $a->getFileName(); |
|
388 | if ( empty( $line ) && ! empty( $function )) { |
|
389 | $b = new ReflectionMethod( $class, $function ); |
|
390 | $line = $b->getStartLine(); |
|
391 | } |
|
392 | } |
|
393 | ||
394 | if ( $nmbr == $last_on_stack ) { |
|
395 | $file = $ex['file'] != '' ? $ex['file'] : $file; |
@@ 84-91 (lines=8) @@ | ||
81 | $args = isset( $trace['args'] ) && count( $trace['args'] ) > 4 ? ' <br />' . $args . '<br />' : $args; |
|
82 | $line = isset( $trace['line'] ) ? $trace['line'] : ''; |
|
83 | $zebra = $nmbr % 2 !== 0 ? ' odd' : ''; |
|
84 | if ( empty( $file ) && ! empty( $class ) ) { |
|
85 | $a = new \ReflectionClass( $class ); |
|
86 | $file = $a->getFileName(); |
|
87 | if ( empty( $line ) && ! empty( $function ) ) { |
|
88 | $b = new \ReflectionMethod( $class, $function ); |
|
89 | $line = $b->getStartLine(); |
|
90 | } |
|
91 | } |
|
92 | if ( $nmbr === $last_on_stack ) { |
|
93 | $file = $exception->getFile() !== '' ? $exception->getFile() : $file; |
|
94 | $line = $exception->getLine() !== '' ? $exception->getLine() : $line; |