[php-maint] error_reporting = ~E_STRICT has no effect

Ondřej Surý ondrej at debian.org
Sun Apr 8 16:29:54 UTC 2012

Are you sure the package is not setting error_reporting somewhere else
in the code?

root at howl:/# php -n -d 'error_reporting=E_ALL&~E_DEPRECATED&~E_STRICT'
-r 'print ini_get("error_reporting")."\n";'
root at howl:/# php -n -d 'error_reporting=E_ALL&~E_DEPRECATED' -r 'print
root at howl:/# php -v
PHP 5.4.1RC1 (cli) (built: Apr  6 2012 13:31:16)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies


On Sun, Apr 8, 2012 at 17:17, Thomas Goirand <zigo at debian.org> wrote:
> Hi,
> I'm currently trying to fix issues in the PEAR packages that I maintain,
> and make sure they are ok with PHP 5.4. And a lot of them, including
> those working on XML, are throwing lots of E_STRICT errors. But the
> issue is that I have  in /etc/php5/cli/php.ini:
> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
> so the "PHP Strict Standards" issues shouldn't be reported at all.
> Removing ~E_STRICT, removing the ~ or anything of the sort doesn't do
> anything, the errors are still showed, which potentially breaks the
> output of some XML documents.
> Is this a known issue? Should I open a bug report for that?
> Cheers,
> Thomas
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint

Ondřej Surý <ondrej at sury.org>

More information about the pkg-php-maint mailing list