summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-03-03 12:05:03 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-03-03 12:05:03 +0100
commit2dc2436e08e1c80247a940dedeae67135e1c233a (patch)
tree5fb7c995b714d31d0fcb2fd6d2fecc7c6bfa8556
parent8162abeb175505168f7c739c1ebc97136d1b1c9b (diff)
parent303a4ae44a332bb693ef3f54f75a6e6bc63400c8 (diff)
downloadphp-git-2dc2436e08e1c80247a940dedeae67135e1c233a.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: Fix test wrt. server.inc changes
-rw-r--r--ext/standard/tests/http/bug78719.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/tests/http/bug78719.phpt b/ext/standard/tests/http/bug78719.phpt
index b12bd3951e..8678a8779a 100644
--- a/ext/standard/tests/http/bug78719.phpt
+++ b/ext/standard/tests/http/bug78719.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #78719 (http wrapper silently ignores long Location headers)
--SKIPIF--
-<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); ?>
+<?php require 'server.inc'; http_server_skipif(); ?>
--INI--
allow_url_fopen=1
--FILE--
@@ -12,10 +12,10 @@ $url = str_repeat('*', 2000);
$responses = array(
"data://text/plain,HTTP/1.0 302 Ok\r\nLocation: $url\r\n\r\nBody",
);
-$pid = http_server("tcp://127.0.0.1:12342", $responses, $output);
+['pid' => $pid, 'uri' => $uri] = http_server($responses);
$context = stream_context_create(['http' => ['follow_location' => 0]]);
-$stream = fopen('http://127.0.0.1:12342/', 'r', false, $context);
+$stream = fopen($uri, 'r', false, $context);
var_dump(stream_get_contents($stream));
var_dump(stream_get_meta_data($stream)['wrapper_data'][1] === "Location: $url");