View Issue Details

IDProjectCategoryView StatusLast Update
0000587XdebugUncategorizedpublic2011-06-24 16:51
Reporterarmencho Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Summary0000587: XDebug makes PHP always give out 200 OK, even with [fatal] errors
Description

My Apache 2.2.15 / PHP 5.3.2 sets HTTP status code to 500 on errors, which is indeed a correct route of behavior to take, given how a lot of clients interpret status codes before they interpret response bodies.

I have compiled and installed XDebug 2.0.5 and after enabling it, the same script errors no longer result in HTTP status code 500.

I believe this is erroneous behavior on XDebug's part.

Tagshttp status code
Operating SystemUbuntu Linux 32-bit, kernel 2.6.31-22-generic
PHP Version5.3.2

Activities

derick

2010-06-24 19:18

administrator   ~0001510

Before I can address this, there need to be some changes in PHP itself. It doesn't expose some required information to extensions yet that I will need.

derick

2011-06-24 16:51

administrator   ~0001756

I've committed the patches into PHP, so this will work from PHP 5.4 (once it gets released) and later.

Issue History

Date Modified Username Field Change
2010-06-19 11:38 armencho New Issue
2010-06-19 11:38 armencho Operating System => Ubuntu Linux 32-bit, kernel 2.6.31-22-generic
2010-06-19 11:38 armencho PHP Version => 5.3.2
2010-06-19 11:38 armencho Xdebug Version => 2.0.5
2010-06-19 12:55 armencho Tag Attached: http status code
2010-06-24 19:18 derick Note Added: 0001510
2011-06-24 16:51 derick Note Added: 0001756
2011-06-24 16:51 derick Status new => closed
2011-06-24 16:51 derick Assigned To => derick
2011-06-24 16:51 derick Resolution open => fixed
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized