пт, 30 авг. 2019 г. в 11:33, Nikita Popov <nikita....@gmail.com>:

> 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
>

+1 from userland.

I always have edited the php.ini for production. I also usually edit
development too to include all error levels, but yeah - having shipped
php.ini with sane defaults would be very welcome.
I do agree with Zeev that production file should probably resemble what
php.ini-development is right now, so I'd say we need to go deeper ;)

-- 
Arvīds Godjuks

+371 26 851 664
arvids.godj...@gmail.com
Skype: psihius
Telegram: @psihius https://t.me/psihius

Reply via email to