Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Changes to PHP error handling. #2203
This commit attempts to solve a problem of minor PHP errors causing the app to exit. App will now exit only if the error event was not handled, allowing developers to set up custom error handlers that will ignore certain types of errors (eg notices). PHP errors are also logged using an appropriate level, depending on error code (E_ERROR, E_NOTICE etc). A shutdown function is also registered to attempt to catch fatal errors (and at least log them).
See here for more details:
The proper (expected) way of ignoring certain types of PHP errors is via the
For 1.1, because we want to keep the codebase as stable as possible, we will not try to catch fatal errors using shutdown functions. We will do this in 2.0.