mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +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,13 +118,13 @@ 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_,
|
$this->port_,
|
||||||
$errno,
|
$errno,
|
||||||
$errstr,
|
$errstr,
|
||||||
$this->sendTimeout_/1000.0);
|
$this->sendTimeout_/1000.0);
|
||||||
} else {
|
} else {
|
||||||
$this->handle_ = fsockopen($this->host_,
|
$this->handle_ = @fsockopen($this->host_,
|
||||||
$this->port_,
|
$this->port_,
|
||||||
$errno,
|
$errno,
|
||||||
$errstr,
|
$errstr,
|
||||||
|
Loading…
Reference in New Issue
Block a user