We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 57e3262 + 375688c commit 6e43a55Copy full SHA for 6e43a55
src/TcpConnector.php
@@ -66,14 +66,12 @@ public function connect($uri)
66
}
67
68
69
- // HHVM fails to parse URIs with a query but no path, so let's add a dummy path
70
- // See also https://3v4l.org/jEhLF
71
- if (defined('HHVM_VERSION') && isset($parts['query']) && !isset($parts['path'])) {
72
- $uri = str_replace('?', '/?', $uri); // @codeCoverageIgnore
73
- }
+ // latest versions of PHP no longer accept any other URI components and
+ // HHVM fails to parse URIs with a query but no path, so let's simplify our URI here
+ $remote = 'tcp://' . $parts['host'] . ':' . $parts['port'];
74
75
$socket = @stream_socket_client(
76
- $uri,
+ $remote,
77
$errno,
78
$errstr,
79
0,
0 commit comments