summaryrefslogtreecommitdiff
path: root/lib/php
diff options
context:
space:
mode:
authorJames E. King, III <jking@apache.org>2017-04-01 23:26:54 -0400
committerJames E. King, III <jking@apache.org>2017-04-01 23:26:54 -0400
commitc6ded922c586cad7f66b57a123fec520e5c36a5e (patch)
treed438080ab78a7840ca72135303a78b337a851cbc /lib/php
parentd5536d1ea0300d5643600608492ae51b35538cbf (diff)
downloadthrift-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.php6
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;
}
/**