1--TEST--
2Verify that http_clear_last_response_headers() clears the headers.
3--SKIPIF--
4<?php require 'server.inc'; http_server_skipif(); ?>
5--INI--
6allow_url_fopen=1
7--FILE--
8<?php
9require 'server.inc';
10
11$responses = array(
12    "data://text/plain,HTTP/1.0 200 Ok\r\nSome: Header\r\nSome: Header\r\n\r\nBody",
13);
14
15['pid' => $pid, 'uri' => $uri] = http_server($responses, $output);
16
17$f = file_get_contents($uri);
18var_dump($f);
19var_dump(http_get_last_response_headers());
20
21// Clear headers
22http_clear_last_response_headers();
23var_dump(http_get_last_response_headers());
24
25http_server_kill($pid);
26
27?>
28--EXPECT--
29string(4) "Body"
30array(3) {
31  [0]=>
32  string(15) "HTTP/1.0 200 Ok"
33  [1]=>
34  string(12) "Some: Header"
35  [2]=>
36  string(12) "Some: Header"
37}
38NULL
39