#43621 [Opn->Bgs]: Errors should provide HTTP 500 response
| From: | magnus@php.net | Date: | Tue, 01 Jan 2008 14:29:50 +0000 |
| Subject: | #43621 [Opn->Bgs]: Errors should provide HTTP 500 response | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120971@lists.php.net to get a copy of this message | ||
ID: 43621
Updated by: magnus@php.net
Reported By: phillip dot oldham at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 5.2.5
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Bug #41342
Previous Comments:
------------------------------------------------------------------------
[2007-12-18 10:05:10] phillip dot oldham at gmail dot com
Description:
------------
When using PHP with a webserver, errors raised which are above
E_WARNING should produce a HTTP 500 response which can then be captured
by the webserver and handled accordingly.
Reproduce code:
---------------
<?php
echlo "Hello World"
?>
Expected result:
----------------
HTTP/1.x 500 Internal Server Error
Content-type: text/html; charset=utf-8
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
in /var/www/error.php on line 2
<br />
<b>Parse error</b>: syntax error, unexpected
T_CONSTANT_ENCAPSED_STRING in <b>/var/www/error.php</b> on line
<b>2</b><br />
Actual result:
--------------
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
in /var/www/error.php on line 2
Content-type: text/html; charset=utf-8
<br />
<b>Parse error</b>: syntax error, unexpected
T_CONSTANT_ENCAPSED_STRING in <b>/var/www/error.php</b> on line
<b>2</b><br />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43621&edit=1