Re: html_errors default settings

From: Date: Fri, 24 Jun 2011 07:28:00 +0000
Subject: Re: html_errors default settings
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-53566@lists.php.net to get a copy of this message
On Thu, Jun 23, 2011 at 11:44 PM, John Crenshaw <johncrenshaw@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

« previous php.internals (#53566) next »