Permalink
Browse files

Added a test for bug 625 to verify `xdebug_get_headers()` does not re…

…set headers
  • Loading branch information...
1 parent e1b9127 commit 5516cc7b6322dabbfa3b9cc6bca364ac4d9afeed @whatthejeff whatthejeff committed Dec 29, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 tests/bug00625-2.phpt
View
@@ -0,0 +1,19 @@
+--TEST--
+Test for bug #625: xdebug_get_headers() resets header list
+--INI--
+xdebug.default_enable=1
+--FILE--
+<?php
+header('Content-type: text/plain');
+var_dump( xdebug_get_headers( ) );
+var_dump( xdebug_get_headers( ) );
+?>
+--EXPECTF--
+array(1) {
+ [0] =>
+ string(24) "Content-type: text/plain"
+}
+array(1) {
+ [0] =>
+ string(24) "Content-type: text/plain"
+}

0 comments on commit 5516cc7

Please sign in to comment.