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

 ID:                 50071
 Comment by:         tedmasterweb at gmail dot com
 Reported by:        rank1seeker at gmail dot com
 Summary:            Not honored: display_errors = stderr
 Status:             Bogus
 Type:               Bug
 Package:            *Configuration Issues
 Operating System:   FreeBSD 7.2
 PHP Version:        5.3SVN-2009-11-03 (snap)
 Block user comment: N

 New Comment:

Sorry for that last post, I just realized that the "type" change in
display_errors 

happened AFTER the version of PHP that I'm running.



However, the suggestion to set error_reporting to 2147483647 (when
setting it 

inside httpd.conf) causes display_errors to fail (to display all errors
regardless 

of its actual setting).



http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting



Wish it wasn't so, but alas, it is :-(


Previous Comments:
------------------------------------------------------------------------
[2010-08-30 18:32:33] tedmasterweb at gmail dot com

I second the motion that display_errors=Off means off, completely off
under all 

circumstances and regardless of reporting level. FWIW, I have the
following in 

httpd.conf and I'm still seeing errors on the screen (PHP 5.3.1):





php_value display_errors Off

php_flag log_errors 1

php_value error_log /tmp/php_errors.log

php_value error_reporting 2147483647



The value for error_reporting comes from the online documentation.



The bottom line is I want to see ALL errors logged to a file, but none
NONE on 

the 

screen.



Maybe I've misunderstood something but it seems that I have my settings
correct.

------------------------------------------------------------------------
[2010-04-10 18:06:39] ahollosi at xmp dot net

This bug is NOT bogus.



I can confirm it for PHP 5.3.2 on IIS 7.5 running on Windows Server 2008
R2 (I'm using the precompiled binaries from windows.php.net)



display_errors=stderr is ignored, output goes to STDOUT, if
log_errors=On and error_log is set to a file.



And yes: I checked that the correct php.ini file is loaded.



(On a side note: I don't think that bug #28349 is bogus either. If I set
display_errors=Off I excpect it to mean "Off" and not "Well, mostly off,
unless you set some other configuration options to wrong values.")

------------------------------------------------------------------------
[2009-11-04 13:50:12] rank1seeker at gmail dot com

Of course it is loaded: I already use phpinfo() script

Loaded Configuration File       /usr/local/etc/php.ini



I even tried:

display_errors = stderr

display_errors = Stderr

display_errors = "stderr"

display_errors = "Stderr"



All behaves as:

display_errors = On

------------------------------------------------------------------------
[2009-11-04 09:54:22] j...@php.net

It works fine when your ini file is actually loaded.

Check phpinfo() for "Loaded Configuration file" line..

------------------------------------------------------------------------
[2009-11-03 23:18:29] rank1seeker at gmail dot com

Description:
------------
display_errors = stderr, acts like display_errors = On

Reproduce code:
---------------
In php.ini:

display_errors = stderr

Expected result:
----------------
Errors displayed to STDERR

Actual result:
--------------
Errors displayed to STDOUT (visible in browser)



Some page[phpinfo();] parsed by fcgi

Result(part):

display_errors  On(Local Value) On(Master Value)


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



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

Reply via email to