Re: Exposing PHP/errors on production vs. dev
| From: | Robert Cummings | Date: | Sat, 02 Aug 2008 01:16:34 +0000 |
| Subject: | Re: Exposing PHP/errors on production vs. dev | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277604@lists.php.net to get a copy of this message | ||
On Fri, 2008-08-01 at 17:30 -0700, mike wrote:
> Does this look right?
>
> Obviously you still want to know about production errors, so I'd like
> to log them.
>
> Development I want to see -everything- and I want it to display on the
> page. The assumption is production won't have any notices as the code
> should be clean and our higher priority are fixing errors. But that
> one is easily editable if needed :)
>
> Production:
>
> display_errors = Off
> display_startup_errors = Off
> error_reporting = E_ALL & ~E_NOTICE
> expose_php = Off
> log_errors = On
> error_log = syslog
>
> Dev:
>
> display_errors = On
> display_startup_errors = On
> error_reporting = E_ALL
> expose_php = On
> log_errors = On
> error_log = syslog
>
> Am I missing any?
Personally, and I know I'm not alone here... I keep E_NOTICE enabled
in production also.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP