MantisBT - Xdebug
View Issue Details
0000903XdebugUsage problems (Wrong Results)public2012-11-20 12:592012-12-18 12:36
TheSeer 
derick 
normalminoralways
closedfixed 
2.2.1 
2.2.22.2.2 
Linux
5.4.4
0000903: xdebug_get_headers() returns replaced headers
Calling PHP's header() function multiple times with the same header-key PHP's default behavior is to replace a previously set header.

Xdebug's tracking does not honor that, causing xdebug_get_headers() to return already overwritten headers.
<?php
header('foo: bar');
header('foo: baz');

var_dump(xdebug_get_headers());


?>
PHP's headers_list() returns only the last set header/value pair - among other, internally set headers.
No tags attached.
has duplicate 0000645resolved derick Suggested improvements for xdebug_header_handler 
Issue History
2012-11-20 12:59TheSeerNew Issue
2012-12-17 20:03derickNote Added: 0002393
2012-12-17 20:03derickStatusnew => closed
2012-12-17 20:03derickAssigned To => derick
2012-12-17 20:03derickResolutionopen => fixed
2012-12-18 12:36derickFixed in Version => 2.2.2
2012-12-18 12:36derickTarget Version => 2.2.2
2014-02-27 19:08derickRelationship addedhas duplicate 0000645
2016-07-31 13:36derickCategoryUsage problems => Usage problems (Crashes)
2016-07-31 13:38derickCategoryUsage problems (Crashes) => Usage problems (Wrong Results)

Notes
(0002393)
derick   
2012-12-17 20:03   
Fixed for Xdebug 2.2.2.