Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/curl/tests/bug79033.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ string(%d) "array(0) {
}
"
string(%d) "POST /get.inc?test=post HTTP/1.1
Host: localhost:%d
Host: 127.0.0.1:%d
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Expand Down
3 changes: 2 additions & 1 deletion ext/curl/tests/server.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ function curl_cli_server_start() {
$php_executable = getenv('TEST_PHP_EXECUTABLE') ?: PHP_BINARY;
$doc_root = __DIR__;
$router = "responder/get.inc";
$cmd = [$php_executable, '-t', $doc_root, '-n', '-S', 'localhost:0', $router];
// With "localhost", libcurl tries ::1 first, which can connect to itself when the server bound only 127.0.0.1.
$cmd = [$php_executable, '-t', $doc_root, '-n', '-S', '127.0.0.1:0', $router];
$descriptorspec = array(
0 => STDIN,
1 => STDOUT,
Expand Down
Loading