| @@ 374-381 (lines=8) @@ | ||
| 371 | $line = isset( $trace['line'] ) ? $trace['line'] : ''; |
|
| 372 | $zebra = $nmbr % 2 ? ' odd' : ''; |
|
| 373 | ||
| 374 | if ( empty( $file ) && ! empty( $class )) { |
|
| 375 | $a = new ReflectionClass( $class ); |
|
| 376 | $file = $a->getFileName(); |
|
| 377 | if ( empty( $line ) && ! empty( $function )) { |
|
| 378 | $b = new ReflectionMethod( $class, $function ); |
|
| 379 | $line = $b->getStartLine(); |
|
| 380 | } |
|
| 381 | } |
|
| 382 | ||
| 383 | if ( $nmbr == $last_on_stack ) { |
|
| 384 | $file = $ex['file'] != '' ? $ex['file'] : $file; |
|
| @@ 136-143 (lines=8) @@ | ||
| 133 | $args = isset( $trace['args'] ) && count( $trace['args'] ) > 4 ? ' <br />' . $args . '<br />' : $args; |
|
| 134 | $line = isset( $trace['line'] ) ? $trace['line'] : ''; |
|
| 135 | $zebra = $nmbr % 2 !== 0 ? ' odd' : ''; |
|
| 136 | if ( empty( $file ) && ! empty( $class ) ) { |
|
| 137 | $a = new \ReflectionClass( $class ); |
|
| 138 | $file = $a->getFileName(); |
|
| 139 | if ( empty( $line ) && ! empty( $function ) ) { |
|
| 140 | $b = new \ReflectionMethod( $class, $function ); |
|
| 141 | $line = $b->getStartLine(); |
|
| 142 | } |
|
| 143 | } |
|
| 144 | if ( $nmbr === $last_on_stack ) { |
|
| 145 | $file = $ex['file'] !== '' ? $ex['file'] : $file; |
|
| 146 | $line = $ex['line'] !== '' ? $ex['line'] : $line; |
|