xref: /PHP-5.4/sapi/cgi/tests/bug61605.phpt (revision efd671f2)
1--TEST--
2Bug #61605 (header_remove() does not remove all headers)
3--SKIPIF--
4<?php include "skipif.inc"; ?>
5--GET--
6foo=bar
7--FILE--
8<?php
9header("A: first");
10header("A: second", TRUE);
11$headers1 = headers_list();
12header("A: third", FALSE);
13$headers2 = headers_list();
14header_remove("A");
15$headers3 = headers_list();
16print_r($headers1);
17print_r($headers2);
18print_r($headers3);
19--EXPECTF--
20Array
21(
22    [0] => X-Powered-By: %s
23    [1] => A: second
24)
25Array
26(
27    [0] => X-Powered-By: %s
28    [1] => A: second
29    [2] => A: third
30)
31Array
32(
33    [0] => X-Powered-By: %s
34)
35