Re: In regards to E_STRICT and PHP5
| From: | Dan Scott | Date: | Thu, 16 Jun 2005 17:39:14 +0000 |
| Subject: | Re: In regards to E_STRICT and PHP5 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16757@lists.php.net to get a copy of this message | ||
On 6/16/05, Zeev Suraski <zeev@zend.com> wrote:
> Why would you enable it then? You have to very explicitly enable it, as
> it's off by default, and doesn't get enabled even if you switch to E_ALL.
Well, that depends on your definition of "default";
php.ini-recommended in HEAD shows:
; - Show all errors, including coding standards warnings
;
error_reporting = E_ALL | E_STRICT
-- so the user who does 'cp php.ini-recommended /etc/php.ini' is, in
fact, getting E_STRICT by default with the recommended configuration.
Perhaps E_ALL should be the default in php.ini-recommended, with E_ALL
| E_STRICT a documented (but commented) option.
Dan