Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[Debug][ErrorHandler] Preserve our error handler when a logger sets another one #29869
When logging errors handled by the
However, when the previous error handler is restored by the logger, it "skips" the real previous handler (the
Here is an easy small example that shows the PHP behavior : https://3v4l.org/4OZNZ
The only solution I have found to fix it is to set our error handler everytime an error is logged.
Here are the things I discovered while trying to find a cleaner fix :