You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @php4fan , thanks for bring this issue to our attention and for providing the reproducible code snippet which really helped when investigating the issue.
#851 is not related to the issue as that is the way the agent has always reported errors with the exception of agent version 10.18.
This was an interesting problem.
In this case, a php E_WARNING error was triggered. We intercept the error from PHP and record it then pass execution back to PHP.
Description
I have this code:
The code inside the
try
block causes an exception which gets caught. And yet this gets reported to NewRelic as an E_WARNING:https://onenr.io/0Zw0mMP6ORv
The exception is getting caught, and there is no E_WARNING at all, so there's nothing here to report to NewRelic.
Note that I have ini_set('display_errors', true), so if there was an E_WARNING it would be printed to the output, which is not the case.
Steps to Reproduce
See code above
Expected Behavior
Nothing should be reported to NewRelic
Observed behavior
A non-existent
E_WARNING
error is reported to NewRelic.Relevant Logs / Console output
Your Environment
PHP 7.4 on Debian
Additional context
The text was updated successfully, but these errors were encountered: