Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed bug #625: xdebug_get_headers() resets header list #42

Merged
merged 1 commit into from

1 participant

@derickr
Owner

No description provided.

@derickr derickr referenced this pull request from a commit
@derickr derickr Merged pull request #42 785accd
@derickr derickr merged commit 622fbf8 into xdebug:xdebug_2_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 1 deletion.
  1. +15 −0 tests/bug00625.phpt
  2. +0 −1  xdebug.c
View
15 tests/bug00625.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Test for bug #625: xdebug_get_headers() resets header list
+--INI--
+xdebug.default_enable=1
+--FILE--
+<?php
+header( 'Location: bar');
+header( 'HTTP/1.0 404 Not Found' );
+var_dump( xdebug_get_headers( ) );
+?>
+--EXPECTF--
+array(1) {
+ [0] =>
+ string(13) "Location: bar"
+}
View
1  xdebug.c
@@ -1855,7 +1855,6 @@ PHP_FUNCTION(xdebug_get_headers)
string = XDEBUG_LLIST_VALP(le);
add_next_index_string(return_value, string, 1);
}
- xdebug_llist_empty(XG(headers), NULL);
}
Something went wrong with that request. Please try again.