mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
Suppress php errors in TSocket
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664814 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3c4d7fd053
commit
d7cc1c4e63
@ -118,17 +118,17 @@ class TSocket extends TTransport {
|
||||
*/
|
||||
public function open() {
|
||||
if ($this->persist_) {
|
||||
$this->handle_ = pfsockopen($this->host_,
|
||||
$this->handle_ = @pfsockopen($this->host_,
|
||||
$this->port_,
|
||||
$errno,
|
||||
$errstr,
|
||||
$this->sendTimeout_/1000.0);
|
||||
} else {
|
||||
$this->handle_ = @fsockopen($this->host_,
|
||||
$this->port_,
|
||||
$errno,
|
||||
$errstr,
|
||||
$this->sendTimeout_/1000.0);
|
||||
} else {
|
||||
$this->handle_ = fsockopen($this->host_,
|
||||
$this->port_,
|
||||
$errno,
|
||||
$errstr,
|
||||
$this->sendTimeout_/1000.0);
|
||||
}
|
||||
|
||||
// Connect failed?
|
||||
|
Loading…
Reference in New Issue
Block a user