Skip to content

Commit 6a5d35c

Browse files
committed
revert unintentinal removal of error silencing in fsockopen
1 parent 3f1754a commit 6a5d35c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ protected function sendViaSocket($req, $method, $server, $port, $path, $opts)
11241124
/// PHP Warning: stream_socket_client(): Failed to enable crypto in /home/docker/workspace/src/Client.php on line 1121
11251125
/// PHP Warning: stream_socket_client(): unable to connect to tls://localhost:443 (Unknown error) in /home/docker/workspace/src/Client.php on line 1121'
11261126
/// This could be obviated by removing the `@` and capturing warnings via ob_start and co
1127-
$fp = stream_socket_client("$transport://$connectServer:$connectPort", $this->errno, $this->errstr, $connectTimeout,
1127+
$fp = @stream_socket_client("$transport://$connectServer:$connectPort", $this->errno, $this->errstr, $connectTimeout,
11281128
STREAM_CLIENT_CONNECT, $context);
11291129
if ($fp) {
11301130
if ($opts['timeout'] > 0) {

0 commit comments

Comments
 (0)