Make error_reporting=E_ALL the default
| From: | Nikita Popov | Date: | Fri, 30 Aug 2019 09:32:39 +0000 |
| Subject: | Make error_reporting=E_ALL the default | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-106810@lists.php.net to get a copy of this message | ||
Hi internals,
Relating to the recent discussions on undefined variables & co. One thing
that is particularly annoying about the undefined variable case is that our
default error_reporting level (without a php.ini) does not include E_NOTICE.
Thankfully distros do tend to have more reasonable defaults, but if you
spend as much time with custom PHP builds as I do, not seeing *anything*
for undefined variables is a pretty big annoyance.
Does anyone see an issue with making error_reporting=E_ALL the default in
PHP 8? It can of course still be manually downgraded via php.ini and
php.ini-production will retain the existing recommendation that excludes
E_DEPRECATED/E_STRICT.
PR: https://github.com/php/php-src/pull/4659
Regards,
Nikita