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
17$f = file_get_contents($uri);
18var_dump($f);
19var_dump($http_response_header);
20
21http_server_kill($pid);
22
23?>
24--EXPECT--
25string(4) "Body"
26array(2) {
27  [0]=>
28  string(15) "HTTP/1.0 200 Ok"
29  [1]=>
30  string(0) ""
31}
32