Skip to content

Commit c2e12be

Browse files
committed
Bug #21031: Warning on connection error(stream_socket_client)
1 parent d763c16 commit c2e12be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Net/Socket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function connect(
161161
}
162162

163163
$addr = $this->addr . ':' . $this->port;
164-
$fp = stream_socket_client($addr, $errno, $errstr,
164+
$fp = @stream_socket_client($addr, $errno, $errstr,
165165
$timeout, $flags, $context);
166166
} else {
167167
$fp = @$openfunc($this->addr, $this->port, $errno,

0 commit comments

Comments
 (0)