Bug #49362 [Com]: Deprecated php.ini options warnings output even with display_errors=off

From: Date: Tue, 23 Mar 2010 13:03:07 +0000
Subject: Bug #49362 [Com]: Deprecated php.ini options warnings output even with display_errors=off
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148888@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=49362&edit=1

 ID:               49362
 Comment by:       aks at esoft dot dk
 Reported by:      tomas dot hlavacek at firma dot volny dot cz
 Summary:          Deprecated php.ini options warnings output even with
                   display_errors=off
 Status:           Closed
 Type:             Bug
 Package:          PHP options/info functions
 Operating System: *
 PHP Version:      5.3, 6
 Assigned To:      kalle

 New Comment:

> That's confusing then...

Not to mention it contradicts the documentation 
(http://www.php.net/manual/en/migration53.deprecated.php):

"The following is a list of deprecated INI directives. Use of any of
these INI 
directives will cause an E_DEPRECATED error to be thrown at startup.
(...)
 * register_long_arrays
(...)"

No it doesn't. It throws E_WARNING, just like when trying to copy a
non-existant 
file. Except in 5.3.0 and 5.3.1 where even error_reporting=0 in your INI
wont 
kill the message.

I have an idea in the spirit of PHP's design philosophy -- why not
disable the 
warning if you write it your php.ini as follows?

@register_long_arrays = On

:-D
D-:


Previous Comments:
------------------------------------------------------------------------
[2009-09-07 08:54:48] tomas dot hlavacek at firma dot volny dot cz

Check what you wrote:

[3 Sep 9:26pm UTC] jani@php.net

For 6: change the error reporting to E_ERROR
For 5.3: change them to E_DEPRECATED (and only really shown when that
is

set)


That's confusing then...

------------------------------------------------------------------------
[2009-09-07 08:42:19] jani@php.net

Yes. It's not E_DEPRECATED, it's E_WARNING and that's not gonna change.

------------------------------------------------------------------------
[2009-09-07 07:20:13] tomas dot hlavacek at firma dot volny dot cz

php.ini:
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On

php -i output:
~~~~~~
D:\php5>php -i

Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and
greater in Unknown on line 0
phpinfo()
PHP Version => 5.3.2-dev

System => Windows NT W2K8-TEST 6.0 build 6002 (Windows Server 2008 Web
Server Edition Service Pack 2) i586
...
~~~~~~

Is this desired manner?

------------------------------------------------------------------------
[2009-09-04 11:03:07] jani@php.net

Fixed.

------------------------------------------------------------------------
[2009-09-03 21:26:00] jani@php.net

For 6: change the error reporting to E_ERROR
For 5.3: change them to E_DEPRECATED (and only really shown when that is

set)

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=49362


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=49362&edit=1


Thread (19 messages)

« previous php.bugs (#148888) next »