--TEST-- Bug #80838 (HTTP wrapper waits for HTTP 1 response after HTTP 101) --INI-- allow_url_fopen=1 --SKIPIF-- --FILE-- $pid, 'uri' => $uri] = http_server($responses); $options = [ 'http' => [ 'ignore_errors' => true ], ]; $ctx = stream_context_create($options); $fd = fopen($uri, 'rb', false, $ctx); fclose($fd); var_dump($http_response_header); http_server_kill($pid); ?> --EXPECT-- array(3) { [0]=> string(32) "HTTP/1.1 101 Switching Protocols" [1]=> string(15) "Header1: Value1" [2]=> string(15) "Header2: Value2" }