diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-03 11:56:03 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-03 12:04:06 +0100 |
commit | 303a4ae44a332bb693ef3f54f75a6e6bc63400c8 (patch) | |
tree | 1bdcb160174ca50302608a5fefe5fac2ac4f7f3c | |
parent | 90b24401d669388b5a90da6825d42df20883b9d5 (diff) | |
download | php-git-303a4ae44a332bb693ef3f54f75a6e6bc63400c8.tar.gz |
Fix test wrt. server.inc changes
-rw-r--r-- | ext/standard/tests/http/bug78719.phpt | 6 |
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"); |