-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent fatal error in Raven_Stacktrace #493
Conversation
When a PHP extension has an error, raven tries to load a non-existent file (in our case newrelic/guzzle6), causing SplFileObject to throw a fatal error. Do not attempt to load the file if it does not exist.
Thanks for the contribution! |
Could you tell me on what php version this occurs? I tested it on my local 5.5 & 7.1 install but get the following:
A |
@stayallive Thanks for checking it out. We had the issue on PHP 7.0. The filename it tried to open was "newrelic/Guzzle6". |
@rsadza would you happen to have the exact error log entry? I can see how an uncaught runtime exception would turn into a failed error, but that should not happen since we catch it. Sentry does have a way to make it look like the error came from the Sentry SDK, so would be very interested in the log message so I can investigate a bit deeper. |
|
@stayallive do you need any help with merging this pull request? I'm getting the issue constantly in my newrelic logs. |
@samdark it appears that the issue is due to the fact that Do you have anything in place that alters this? |
...but Which in turn raises the
This is the source of the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis build is green! Thanks @stayallive for adding a regression test case!
Do you plan tagging release anytime soon? |
Yes, today if possible 👍 |
FYI: 1.8.2 has been released with this PR in it. Thanks! |
When a PHP extension has an error, raven tries to load a non-existent file (in our case newrelic/guzzle6), causing SplFileObject to throw a fatal error.
Do not attempt to load the file if it does not exist.