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 | |||
| 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). |