-
Notifications
You must be signed in to change notification settings - Fork 100
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
Should not use set_exception_handler #66
Comments
Thank you for the feedback! I'll see what I can do to change exception handling on the weekends. Sorry for inconvenience that it caused. |
Don't be worry for the inconvenience ! I should thank you for the job you have done and to share it with everyone ! I was asking myself "Why an handler is needed ?"
Maybe it's not usefull to use a global PHP Exception handler, and we can locally trap exception, if there is any missing ? |
Any update on that please ? |
php-bitcoinrpc/src/functions.php
Line 121 in 172c184
Using set_exception_handler can override existings handler and can be a big problem for application that already use it.
For it has shutdown the NewRelic error reporting !
I suggest either to not use it or, to use it right before a call and call restore_exception_handler after the call (a successfull call or an error one).
I will have to find a way to change that. If i can will propose you a pullrequest
The text was updated successfully, but these errors were encountered: