Bug #61556 [Opn->Nab]: display_errors=stderr is treated as display_errors=on
Edit report at https://bugs.php.net/bug.php?id=61556&edit=1
ID: 61556
Updated by: yohgaki@php.net
Reported by: peaceable_whale at hotmail dot com
Summary: display_errors=stderr is treated as
display_errors=on
-Status: Open
+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:
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.
Previous Comments:
------------------------------------------------------------------------
[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
Thread (3 messages)