[php-maint] Bug#674944: Bug#674944: php5-common: PHP-5.4.3-5 : No way to exclude E_STRICT warnings from error reporting

Thomas Goirand zigo at debian.org
Tue May 29 16:17:09 UTC 2012

On 05/29/2012 04:45 AM, roger crettol wrote:
> I have tried to tweak the error_reporting variable in /etc/php5/apache2/php.ini
> to mute warnings about PHP-4 compatibility problems in my Drupal 6.26
> installation, without success - the only way I found was to set error_reporting
> = 0.
> Setting the variable to either E_ERROR or E_WARNING produces the warnings
> related to strict-ness violations. The documentation leas one to believe that
> E_ALL now includes E_STRICT, but this doesn't seem to be the case, since both
> E_ERROR and E_WARNING (values 1 and 2) trigger the warnings.
> Is this behaviour really intended, or has a small bug slipped in ?
> Thanks for a reply.
> -rg-


Have you tried something like this?

error_reporting = E_ALL & ~E_STRICT

The way to do it is that & ~E_STRICT removes the E_STRICT bit from the
error reporting. You can do that with *many* other stuff. If you succeed
with putting error_reporting = 0, then I believe you simply didn't know
how to handle error_reporting.

Please try again and let us know, otherwise we will simply close this
bug, because it really seem to me that the mistake is on your side.



More information about the pkg-php-maint mailing list