Bug #61556 [NEW]: display_errors=stderr is treated as display_errors=on

From: Date: Thu, 29 Mar 2012 20:07:48 +0000
Subject: Bug #61556 [NEW]: display_errors=stderr is treated as display_errors=on
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168992@lists.php.net to get a copy of this message
From:             
Operating system: Windows Server 2008 R2
PHP version:      5.4.0
Package:          PHP options/info functions
Bug Type:         Bug
Bug description:display_errors=stderr is treated as display_errors=on

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 bug report at https://bugs.php.net/bug.php?id=61556&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=61556&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=61556&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=61556&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=61556&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61556&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=61556&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=61556&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=61556&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=61556&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=61556&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=61556&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=61556&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=61556&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=61556&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=61556&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61556&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=61556&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=61556&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=61556&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=61556&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=61556&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#168992) next »