Bug #49362 [Csd]: Deprecated php.ini options warnings output even with display_errors=off
Edit report at http://bugs.php.net/bug.php?id=49362edit=1 ID: 49362 Updated by: ka...@php.net 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: aks at esoft dot dk If the documentation indeed says that, then report it as a separate issue instead of bumping an already closed report. Previous Comments: [2010-03-23 14:03:06] aks at esoft dot dk 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-: [2009-09-07 08:54:48] tomas dot hlavacek at firma dot volny dot cz Check what you wrote: [3 Sep 9:26pm UTC] j...@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] j...@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:\php5php -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] j...@php.net Fixed. 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=49362edit=1
#49362 [Csd]: Deprecated php.ini options warnings output even with display_errors=off
ID: 49362 User updated by: tomas dot hlavacek at firma dot volny dot cz Reported By: tomas dot hlavacek at firma dot volny dot cz Status: Closed Bug Type: PHP options/info functions Operating System: * PHP Version: 5.3, 6 Assigned To: kalle New Comment: Check what you wrote: [3 Sep 9:26pm UTC] j...@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... Previous Comments: [2009-09-07 08:42:19] j...@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:\php5php -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] j...@php.net Fixed. [2009-09-03 21:26:00] j...@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) [2009-09-02 16:25:22] romanf at trash dot net Will this be fixed in 5.3? Or only in 6? -Roman 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=49362edit=1
#49362 [Csd]: Deprecated php.ini options warnings output even with display_errors=off
ID: 49362 Updated by: j...@php.net Reported By: tomas dot hlavacek at firma dot volny dot cz Status: Closed Bug Type: PHP options/info functions Operating System: * PHP Version: 5.3, 6 Assigned To: kalle New Comment: Fixed. Previous Comments: [2009-09-03 21:26:00] j...@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) [2009-09-02 16:25:22] romanf at trash dot net Will this be fixed in 5.3? Or only in 6? -Roman [2009-08-26 11:08:41] j...@php.net Correction: E_ERROR of course. :) [2009-08-26 11:08:07] j...@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? 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=49362edit=1