diff options
author | James E. King, III <jking@apache.org> | 2017-04-01 23:26:54 -0400 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-04-01 23:26:54 -0400 |
commit | c6ded922c586cad7f66b57a123fec520e5c36a5e (patch) | |
tree | d438080ab78a7840ca72135303a78b337a851cbc /lib/php | |
parent | d5536d1ea0300d5643600608492ae51b35538cbf (diff) | |
download | thrift-c6ded922c586cad7f66b57a123fec520e5c36a5e.tar.gz |
THRIFT-4154: properly close socket whether it is persistent or not on close()
Client: php
This closes #1011
This closes #1233
Diffstat (limited to 'lib/php')
-rw-r--r-- | lib/php/lib/Thrift/Transport/TSocket.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/php/lib/Thrift/Transport/TSocket.php b/lib/php/lib/Thrift/Transport/TSocket.php index 10d5115d9..1495047e1 100644 --- a/lib/php/lib/Thrift/Transport/TSocket.php +++ b/lib/php/lib/Thrift/Transport/TSocket.php @@ -248,10 +248,8 @@ class TSocket extends TTransport */ public function close() { - if (!$this->persist_) { - @fclose($this->handle_); - $this->handle_ = null; - } + @fclose($this->handle_); + $this->handle_ = null; } /** |