-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(agent): fix test logic for 8.3 exceptions
PHP 8.3 will invoke the user_exception_handler when an exception is encountered (if one is registered). This results in an inversion of the expectation from pre-8.3 of failing out of the zend_try/zend_catch block of code that sets the zend_result to FAILURE and returns NULL to the expr variable assigned to nr_php_call(). 8.3 logic allows our newrelic_exception_handler to intercept the exception, skip the zend_catch, and return SUCCESS in nr_php_call_user_func() which returns a non-NULL value.
- Loading branch information
1 parent
4a8b46b
commit 969492f
Showing
2 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters