Bug: 55634
Change-Id: I1173216cade73216848816f6bb51e54096abdfde
}
}
- $finalExceptionText .= "#{$i} {$call['file']}({$call['line']}): ";
+ if ( isset( $call['file'] ) && isset( $call['line'] ) ) {
+ $finalExceptionText .= "#{$i} {$call['file']}({$call['line']}): ";
+ } else {
+ // 'file' and 'line' are unset for calls via call_user_func (bug 55634)
+ // This matches behaviour of Exception::getTraceAsString to instead
+ // display "[internal function]".
+ $finalExceptionText .= "#{$i} [internal function]: ";
+ }
+
if ( isset( $call['class'] ) ) {
$finalExceptionText .= $call['class'] . $call['type'] . $call['function'];
} else {