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

From: Date: Wed, 02 Sep 2009 16:25:23 +0000
Subject: #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-141865@lists.php.net to get a copy of this message
ID: 49362 Comment by: romanf at trash dot net Reported By: tomas dot hlavacek at firma dot volny dot cz Status: Assigned Bug Type: PHP options/info functions Operating System: * PHP Version: 5.3, 6 Assigned To: kalle New Comment: Will this be fixed in 5.3? Or only in 6? -Roman Previous Comments: ------------------------------------------------------------------------ [2009-08-26 11:08:41] jani@php.net Correction: E_ERROR of course. :) ------------------------------------------------------------------------ [2009-08-26 11:08:07] jani@php.net And in HEAD these should be E_FATAL errors. ------------------------------------------------------------------------ [2009-08-26 09:59:19] tomas dot hlavacek at firma dot volny dot cz Yes, true. What Error Level Constant is used for showing deprecated ini settings then? ------------------------------------------------------------------------ [2009-08-26 09:52:14] jani@php.net Assigning to Kalle who added these in the obviously wrong place. Deprecated ini settings checks can not happen in place where a check for removed setting is done! ------------------------------------------------------------------------ [2009-08-26 09:10:52] tomas dot hlavacek at firma dot volny dot cz Yes, I'm pretty sure to have everything updated :) php.ini: error_reporting = E_ALL & ~E_DEPRECATED display_errors = On Even if I change display_errors=Off, that message will appear. Take a look at this output: D:\php5>php --ini PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and grea ter in Unknown on line 0 Configuration File (php.ini) Path: C:\Windows Loaded Configuration File: D:\php5\php.ini Scan for additional .ini files in: (none) Additional .ini files parsed: (none) For me, that warning message seems to be hardcoded in php source. Please revise your code. ------------------------------------------------------------------------ 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/49362 -- Edit this bug report at http://bugs.php.net/?id=49362&edit=1

« previous php.bugs (#141865) next »