One of the central goals of the framework is robust and complete error handling that is E_STRICT compliant. If we are meeting that goal, you should never see a hard error you would have to trap in such a way—you will instead be thrown a meaningful exception.
Therefore, error handling with Zend Framework should be done using PHP try/catch blocks:
If you ever encounter a raw PHP error when using the framework, please help us improve Zend Framework by filing a bug report.
For uncaught exceptions, see the PHP documentation for set_exception_handler and Harry Fueck's Pretty Blue Screen article on SitePoint.
ZF Home Page
Code Browser
Wiki Dashboard