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:
Mark Slee 2006-10-04 16:49:07 +00:00
parent 3c4d7fd053
commit d7cc1c4e63

View File

@ -118,17 +118,17 @@ class TSocket extends TTransport {
*/ */
public function open() { public function open() {
if ($this->persist_) { 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_, $this->port_,
$errno, $errno,
$errstr, $errstr,
$this->sendTimeout_/1000.0); $this->sendTimeout_/1000.0);
} else {
$this->handle_ = fsockopen($this->host_,
$this->port_,
$errno,
$errstr,
$this->sendTimeout_/1000.0);
} }
// Connect failed? // Connect failed?