Re: In regards to E_STRICT and PHP5
| From: | Zeev Suraski | Date: | Thu, 16 Jun 2005 17:45:12 +0000 |
| Subject: | Re: In regards to E_STRICT and PHP5 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16758@lists.php.net to get a copy of this message | ||
At 20:39 16/06/2005, Dan Scott wrote:
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";I meant what PHP comes with built-in / php.ini-dist.
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.Maybe we should be a bit more clear with what we say there. Zeev