On Mon, Jun 13, 2011 at 8:52 PM, Paul M Foster <paulf@xxxxxxxxxxxxxxxxx>wrote: > There's certain class of errors which happen before any error-handler > (set_error_handler) can catch them, like parse errors and such. Is there > a way to have these generate the same type of response as the errors > handled by set_error_handler()? In my case, the error handler emails me > a summary and trace of the error. Any way to have things like parse > errors do the same thing? > > Pointers to prior threads would do fine. > The only way to do this is to run your PHP script inside another process (PHP or otherwise), piping the output accordingly so you can detect errors that cannot be caught by the error handler. However, statically detectable issues such as parse errors should never get as far as a dynamic environment outside of your development machine, so I would question why you have this requirement. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/