From 303a4ae44a332bb693ef3f54f75a6e6bc63400c8 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 3 Mar 2021 11:56:03 +0100 Subject: [PATCH] Fix test wrt. server.inc changes --- ext/standard/tests/http/bug78719.phpt | 6 +++--- 1 file 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-- - + --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"); -- 2.50.1