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--EXPECT--
24string(4) "Body"
25array(2) {
26  [0]=>
27  string(15) "HTTP/1.0 200 Ok"
28  [1]=>
29  string(0) ""
30}
31