PHP’s error handling is historically bad, and even though new features use exceptions, the legacy ones don’t. Or sometimes functions should trigger a fatal error but it is only a warning, and the code continues, which can trigger …
Read the original:
Exceptions | Code Penguin