From:             mabismad at msn dot com
Operating system: WinXP
PHP version:      5.2.4
PHP Bug Type:     Output Control
Bug description:  display_errors setting ignored for E_PARSE and HTTP 500 page

Description:
------------
The display errors and error reporting change to accomplish the following
- "Changed error handler to send HTTP 500 instead of blank page on PHP
errors. (Dmitry, Andrei Nigmatulin)" - apparently does not check if there
is actual output due to the display errors/error reporting settings.

When display_errors is set to On and error_reporting is set to E_ALL, only
Notice and Warning level messages are output to the browser. Fatal parse
errors (and probably other types) unconditionally cause a HTTP 500 page.

The HTTP 500 redirect should only occur when there is absolutely no actual
output from any of the display errors/error reporting settings.


-- 
Edit bug report at http://bugs.php.net/?id=42722&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42722&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42722&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42722&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42722&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42722&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42722&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42722&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42722&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42722&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42722&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42722&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42722&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42722&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42722&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42722&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42722&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42722&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42722&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42722&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42722&r=mysqlcfg

Reply via email to