Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / sapi / cgi / tests / bug61605.phpt
blobc6e4cf20ca932e227151c6960d3416fceadf5c6b
1 --TEST--
2 Bug #61605 (header_remove() does not remove all headers)
3 --SKIPIF--
4 <?php include "skipif.inc"; ?>
5 --GET--
6 foo=bar
7 --FILE--
8 <?php
9 header("A: first");
10 header("A: second", TRUE);
11 $headers1 = headers_list();
12 header("A: third", FALSE);
13 $headers2 = headers_list();
14 header_remove("A");
15 $headers3 = headers_list();
16 print_r($headers1);
17 print_r($headers2);
18 print_r($headers3);
19 --EXPECTF--
20 Array
22     [0] => X-Powered-By: %s
23     [1] => A: second
25 Array
27     [0] => X-Powered-By: %s
28     [1] => A: second
29     [2] => A: third
31 Array
33     [0] => X-Powered-By: %s