1--TEST--
2Bug #71245 (file_get_contents() ignores "header" context option if it's a reference)
3--FILE--
4<?php
5$headers = ['Host: okey.com'];
6$httpContext = [
7	'http' => [
8		'protocol_version'	=> '1.1',
9		'method'			=> 'GET',
10		'header'			=> &$headers,
11		'follow_location'	=> 0,
12		'max_redirects'		=> 0,
13		'ignore_errors'		=> true,
14		'timeout'			=> 60,
15	],
16];
17$context = stream_context_create($httpContext);
18$headers = ["Host: bad.com"];
19print_r(stream_context_get_options($context));
20?>
21--EXPECTF--
22Array
23(
24    [http] => Array
25        (
26            [protocol_version] => 1.1
27            [method] => GET
28            [header] => Array
29                (
30                    [0] => Host: okey.com
31                )
32
33            [follow_location] => 0
34            [max_redirects] => 0
35            [ignore_errors] => 1
36            [timeout] => 60
37        )
38
39)
40