|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61556 display_errors=stderr is treated as display_errors=on
Submitted: 2012-03-29 20:07 UTC Modified: 2012-03-30 10:26 UTC
From: peaceable_whale at hotmail dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.4.0 OS: Windows Server 2008 R2
Private report: No CVE-ID:
 [2012-03-29 20:07 UTC] peaceable_whale at hotmail dot com
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-30 10:11 UTC]
-Status: Open +Status: Not a bug
 [2012-03-30 10:11 UTC]

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-30 10:26 UTC] peaceable_whale at hotmail dot com
According to

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.
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Tue Dec 01 03:01:31 2015 UTC