1--TEST--
2$http_reponse_header (no redirect)
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
17var_dump(http_get_last_response_headers());
18
19$f = file_get_contents($uri);
20var_dump($f);
21var_dump($http_response_header);
22var_dump(http_get_last_response_headers());
23
24http_server_kill($pid);
25
26?>
27--EXPECT--
28NULL
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}
38array(3) {
39  [0]=>
40  string(15) "HTTP/1.0 200 Ok"
41  [1]=>
42  string(12) "Some: Header"
43  [2]=>
44  string(12) "Some: Header"
45}
46