1--TEST--
2$http_reponse_header (header with trailing whitespace)
3--SKIPIF--
4<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22349'); ?>
5--INI--
6allow_url_fopen=1
7allow_url_include=1
8--FILE--
9<?php
10require 'server.inc';
11
12$responses = array(
13	"data://text/plain,HTTP/1.0 200 Ok\r\nSome:   Header   \r\n\r\nBody",
14);
15
16$pid = http_server("tcp://127.0.0.1:22349", $responses, $output);
17
18function test() {
19    $f = file_get_contents('http://127.0.0.1:22349/');
20    var_dump($f);
21    var_dump($http_response_header);
22}
23test();
24
25http_server_kill($pid);
26?>
27==DONE==
28--EXPECT--
29string(4) "Body"
30array(2) {
31  [0]=>
32  string(15) "HTTP/1.0 200 Ok"
33  [1]=>
34  string(14) "Some:   Header"
35}
36==DONE==
37