diff --git a/lib/Raven/Stacktrace.php b/lib/Raven/Stacktrace.php index ac06cfeea..64307892f 100644 --- a/lib/Raven/Stacktrace.php +++ b/lib/Raven/Stacktrace.php @@ -184,8 +184,10 @@ public static function get_frame_context($frame, $frame_arg_limit = Raven_Client } else { $reflection = new ReflectionMethod($frame['class'], '__call'); } - } else { + } elseif (function_exists($frame['function'])) { $reflection = new ReflectionFunction($frame['function']); + } else { + return self::get_default_context($frame, $frame_arg_limit); } } catch (ReflectionException $e) { return self::get_default_context($frame, $frame_arg_limit);