#42722 [Opn->Asn]: display_errors setting ignored for E_PARSE and HTTP 500 page
| From: | jani@php.net | Date: | Sun, 30 Sep 2007 21:37:29 +0000 |
| Subject: | #42722 [Opn->Asn]: display_errors setting ignored for E_PARSE and HTTP 500 page | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117989@lists.php.net to get a copy of this message | ||
ID: 42722
Updated by: jani@php.net
Reported By: mabismad at msn dot com
-Status: Open
+Status: Assigned
Bug Type: *General Issues
Operating System: WinXP
PHP Version: 5.2.4
-Assigned To:
+Assigned To: dmitry
New Comment:
Dmitry, please check this out.
Previous Comments:
------------------------------------------------------------------------
[2007-09-21 02:22:49] mabismad at msn dot com
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 this bug report at http://bugs.php.net/?id=42722&edit=1