1--TEST--
2$http_reponse_header (whitespace-only "header")
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\n    \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(2) {
31  [0]=>
32  string(15) "HTTP/1.0 200 Ok"
33  [1]=>
34  string(0) ""
35}
36array(2) {
37  [0]=>
38  string(15) "HTTP/1.0 200 Ok"
39  [1]=>
40  string(0) ""
41}
42