Debian Bug report logs -
#674944
php5-common: PHP-5.4.3-5 : No way to exclude E_STRICT warnings from error reporting
Reported by: roger crettol <roger.crettol@bluewin.ch>
Date: Mon, 28 May 2012 20:57:01 UTC
Severity: important
Tags: upstream
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#674944; Package php5-common.
(Mon, 28 May 2012 20:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to roger crettol <roger.crettol@bluewin.ch>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Mon, 28 May 2012 20:57:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.4.3-5
Severity: important
Tags: upstream
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-
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-updates'), (300, 'unstable'), (200, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages php5-common depends on:
ii dpkg 1.16.3
ii libc6 2.13-32
ii psmisc 22.16-1
ii sed 4.2.1-9
ii ucf 3.0025+nmu3
php5-common recommends no packages.
php5-common suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#674944; Package php5-common.
(Tue, 29 May 2012 05:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to OndÅej Surý <ondrej@sury.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Tue, 29 May 2012 05:57:03 GMT) (full text, mbox, link).
Message #10 received at 674944@bugs.debian.org (full text, mbox, reply):
Hi,
could you please create minimal test case?
Ondřej Surý
On 28. 5. 2012, at 22:45, roger crettol <roger.crettol@bluewin.ch> wrote:
> Package: php5-common
> Version: 5.4.3-5
> Severity: important
> Tags: upstream
>
> 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-
>
>
>
> -- System Information:
> Debian Release: wheezy/sid
> APT prefers testing
> APT policy: (990, 'testing'), (500, 'stable-updates'), (300, 'unstable'), (200, 'stable'), (1, 'experimental')
> Architecture: i386 (x86_64)
>
> Kernel: Linux 3.1.0-1-amd64 (SMP w/1 CPU core)
> Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages php5-common depends on:
> ii dpkg 1.16.3
> ii libc6 2.13-32
> ii psmisc 22.16-1
> ii sed 4.2.1-9
> ii ucf 3.0025+nmu3
>
> php5-common recommends no packages.
>
> php5-common suggests no packages.
>
> -- no debconf information
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#674944; Package php5-common.
(Tue, 29 May 2012 16:21:11 GMT) (full text, mbox, link).
Acknowledgement sent
to Thomas Goirand <zigo@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Tue, 29 May 2012 16:21:11 GMT) (full text, mbox, link).
Message #15 received at 674944@bugs.debian.org (full text, mbox, reply):
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-
Hi,
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.
Cheers,
Thomas
No longer marked as found in versions php5/5.4.3-5.
Request was from OndÅej Surý <ondrej@sury.org>
to control@bugs.debian.org.
(Thu, 31 May 2012 08:27:09 GMT) (full text, mbox, link).
Reply sent
to OndÅej Surý <ondrej@sury.org>:
You have taken responsibility.
(Thu, 31 May 2012 08:27:13 GMT) (full text, mbox, link).
Notification sent
to roger crettol <roger.crettol@bluewin.ch>:
Bug acknowledged by developer.
(Thu, 31 May 2012 08:27:14 GMT) (full text, mbox, link).
Message #22 received at 674944-done@bugs.debian.org (full text, mbox, reply):
notfound 674944 php5/5.4.3-5
thank you
Hi Roger,
On Wed, May 30, 2012 at 8:58 PM, roger crettol <roger.crettol@bluewin.ch> wrote:
> So, error_reporting is correctly set, but still, E_STRICT warnings are
> issued. I believe this is the case whenever E_ERROR or E_WARNING is on. Pls.
> advise.
I think you include some PHP code (some other Drupal module somewhere
perhaps?) which mess with error_reporting, see:
# cat views.php
<?php
class view {
function &load($arg, $reset = FALSE) {
static $cache = array();
return $cache[$arg];
}
}
view::load('name');
?>
# php -n -d 'error_reporting=E_ALL & ~E_STRICT' views.php
# php -n -d 'error_reporting=E_ALL' views.php
Strict Standards: Non-static method view::load() should not be called
statically in /tmp/views/views.php on line 10
I don't think there's a bug at all, thus I am closing the bug. If you
can reproduce the bug on a small test file (and not Drupal
installation with custom modules loaded), feel free to reopen the bug.
Ondrej
--
Ondřej Surý <ondrej@sury.org>
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 29 Jun 2012 07:37:50 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 00:49:34 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.