On Thu, Jun 23, 2011 at 11:44 PM, John Crenshaw <johncrens...@priacta.com>wrote:
> > I'd like to hear and explanation how production setting of html_errors as > 1 is useful. > > One that comes to mind is in conjunction with an error trap (output buffer > hack to catch fatal errors and immediately notify an administrator). I could > imagine using html_errors specifically because it would make it easier to > parse the error from the output buffer. > > Of course, in this case I see no reason why the error trap couldn't set > html_errors at the same time as it sets display_errors and > error_prepend_string. > > for this, I prefer register_shutdown_function + error_get_last, it's way more reliable than parsing the html errors. Tyrael