Skip to content

Commit 303a4ae

Browse files
committed
Fix test wrt. server.inc changes
1 parent 90b2440 commit 303a4ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/tests/http/bug78719.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #78719 (http wrapper silently ignores long Location headers)
33
--SKIPIF--
4-
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); ?>
4+
<?php require 'server.inc'; http_server_skipif(); ?>
55
--INI--
66
allow_url_fopen=1
77
--FILE--
@@ -12,10 +12,10 @@ $url = str_repeat('*', 2000);
1212
$responses = array(
1313
"data://text/plain,HTTP/1.0 302 Ok\r\nLocation: $url\r\n\r\nBody",
1414
);
15-
$pid = http_server("tcp://127.0.0.1:12342", $responses, $output);
15+
['pid' => $pid, 'uri' => $uri] = http_server($responses);
1616

1717
$context = stream_context_create(['http' => ['follow_location' => 0]]);
18-
$stream = fopen('http://127.0.0.1:12342/', 'r', false, $context);
18+
$stream = fopen($uri, 'r', false, $context);
1919
var_dump(stream_get_contents($stream));
2020
var_dump(stream_get_meta_data($stream)['wrapper_data'][1] === "Location: $url");
2121

0 commit comments

Comments
 (0)