Re: consider reverting E_ALL with E_STRICT
| From: | Daniel Macedo | Date: | Tue, 06 Mar 2012 16:24:36 +0000 |
| Subject: | Re: consider reverting E_ALL with E_STRICT | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58672@lists.php.net to get a copy of this message | ||
PLEASE, don't be the kind of developer that does this all over his code:
>> error_reporting(E_ALL & E_STRICT ? E_ALL ^ E_STRICT : E_ALL);
Either define it once in the same place, or use the php.ini value and
make sure it's proper.
Here's my development/production, yours should be the same:
; Development
display_errors = On
display_startup_errors = On
log_errors = Off
; This can now be E_ALL; as it should!
error_reporting = E_ALL | E_STRICT
; Production
display_errors = Off
display_startup_errors = Off
log_errors = On
ignore_repeated_errors = On
error_log = "/var/logs/php_error_log"
error_reporting = E_ALL & ~E_DEPRECATED
Cheers,
~ Daniel Macedo