. Fixed bug #80771 (phpinfo(INFO_CREDITS) displays nothing in CLI). (cmb)
. Fixed bug #78719 (http wrapper silently ignores long Location headers).
(cmb)
+ . Fixed bug #80838 (HTTP wrapper waits for HTTP 1 response after HTTP 101).
+ (manuelm)
-04 Mar 2021, php 7.4.16
+- Zip:
+ . Fixed bug #80825 (ZipArchive::isCompressionMethodSupported does not exist).
+ (cmb)
+
+18 Feb 2021, PHP 8.0.3
- Core:
. Fixed #80706 (mail(): Headers after Bcc headers may be ignored). (cmb)
--- /dev/null
-<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); ?>
+ --TEST--
+ Bug #80838 (HTTP wrapper waits for HTTP 1 response after HTTP 101)
+ --INI--
+ allow_url_fopen=1
+ --SKIPIF--
-$pid = http_server('tcp://127.0.0.1:12342', $responses);
++<?php require 'server.inc'; http_server_skipif(); ?>
+ --FILE--
+ <?php
+ require 'server.inc';
+
+ $responses = [
+ "data://text/plain,HTTP/1.1 101 Switching Protocols\r\nHeader1: Value1\r\nHeader2: Value2\r\n\r\n"
+ . "Hello from another protocol"
+ ];
+
-$fd = fopen('http://127.0.0.1:12342/', 'rb', false, $ctx);
++['pid' => $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"
+ }