On Wed, Dec 2, 2020 at 3:14 PM Benjamin Morel
wrote:
> Thanks for the pointer, Nikita.
>
> I think the updated example (using `error_reporting() & $errno`) fails to
> mimic exactly what `error_reporting() === 0` did, though.
>
> Say your php.ini mutes E_WARNING, for example:
>
> error_reporti
Thanks for the pointer, Nikita.
I think the updated example (using `error_reporting() & $errno`) fails to
mimic exactly what `error_reporting() === 0` did, though.
Say your php.ini mutes E_WARNING, for example:
error_reporting = E_ALL & ~E_WARNING
Checking for `error_reporting() === 0` allo
On Wed, Dec 2, 2020 at 2:56 PM Benjamin Morel
wrote:
> Hi internals,
>
> Since PHP 8.0, `error_reporting()` started returning a non-zero value when
> the @ silence operator is used.
>
> Demo: https://3v4l.org/CovYv
>
> Is this intentional? This breaks scripts that converted all errors to
> except
Hi internals,
Since PHP 8.0, `error_reporting()` started returning a non-zero value when
the @ silence operator is used.
Demo: https://3v4l.org/CovYv
Is this intentional? This breaks scripts that converted all errors to
exceptions, except those where the silence operator was used:
set_error