Skip to content

Commit 722b8b8

Browse files
authored
Merge pull request #10 from ashnazg/testing
Bug #21031: Warning on connection error(stream_socket_client)
2 parents ff3f66e + c2e12be commit 722b8b8

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)