View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001552 | Xdebug | Uncategorized | public | 2018-05-19 07:24 | 2020-03-12 18:01 |
Reporter | Robert Lu | Assigned To | derick | ||
Priority | low | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 2.6.0 | ||||
Target Version | 2.8.0dev | ||||
Summary | 0001552: When display_error is On, http status is 200 with Fatal Error | ||||
Description | When display_error is On(in php.ini). If an Exception has been throw in PHP, the HTML result is about Exception information. But the HTTP status code is 200, not 500. | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.0-dev | ||||
|
It also affects PHP 7.1-dev. pull request: https://github.com/xdebug/xdebug/pull/420 |
|
Hi, you're right, but this is also exactly what PHP without Xdebug does. I've created a file "foo2.php", with the following contents:
With Xdebug, and the two versions of display_errors, it does this:
But, without Xdebug (I use the -n argument), it also does the same thing:
As Xdebug's behaviour is the same as with normal PHP, there is no bug (on the Xdebug side). |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-05-19 07:24 | Robert Lu | New Issue | |
2018-05-19 08:21 | Robert Lu | Note Added: 0004658 | |
2019-02-02 01:12 | derick | Status | new => acknowledged |
2019-02-02 01:12 | derick | Target Version | => 2.7.0 |
2019-02-12 16:38 | derick | Assigned To | => derick |
2019-02-12 16:38 | derick | Status | acknowledged => assigned |
2019-03-06 11:38 | derick | Target Version | 2.7.0 => 2.7.0dev |
2019-06-28 11:16 | derick | Target Version | 2.7.0dev => 2.8.0dev |
2019-08-02 13:41 | derick | Status | assigned => resolved |
2019-08-02 13:41 | derick | Resolution | open => no change required |
2019-08-02 13:42 | derick | Note Added: 0005100 | |
2019-08-02 13:42 | derick | Note Edited: 0005100 | |
2020-03-12 16:55 | derick | Severity | tweak => feature |
2020-03-12 18:01 | derick | Category | Feature/Change request => Uncategorized |