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

 ID:                 61556
 User updated by:    peaceable_whale at hotmail dot com
 Reported by:        peaceable_whale at hotmail dot com
 Summary:            display_errors=stderr is treated as
                     display_errors=on
 Status:             Not a bug
 Type:               Bug
 Package:            PHP options/info functions
 Operating System:   Windows Server 2008 R2
 PHP Version:        5.4.0
 Block user comment: N
 Private report:     N

 New Comment:

According to 
http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors:

Value "stderr" sends the errors to stderr instead of stdout. The value is 
available as of PHP 5.2.4. In earlier versions, this directive was of type 
boolean. 

So, stderr is a supported value. This is currently a bug.


Previous Comments:
------------------------------------------------------------------------
[2012-03-30 10:11:45] yohg...@php.net

http://jp.php.net/manual/en/errorfunc.configuration.php

display_errors is "flag" not stings.

Are you suggesting feature change? 
I suppose users should know the correct values for ini settings and check them 
using phpinfo() etc.

------------------------------------------------------------------------
[2012-03-29 20:07:48] peaceable_whale at hotmail dot com

Description:
------------
PHP 5.4.0 running on IIS 7.5, of which the stderrMode setting has been 
ReturnStdErrIn500. A 500 response is expected when display_errors is set to 
stderr. However, a 200 response with error message is returned and instead of 
stderr, on is displayed in phpinfo.


Test script:
---------------
1. Set display_errors=stderr
2. Access a malformed php script
3. Look at the HTTP response code and phpinfo

Expected result:
----------------
A HTTP 500 response with error message is returned

Actual result:
--------------
A HTTP 200 response with error message is returned


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



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

Reply via email to