From 86abcf6ea8bd7bc60761d9c0da28e6feaf1f3cfc Mon Sep 17 00:00:00 2001 From: Mariano Iglesias Date: Thu, 14 May 2015 15:28:27 -0300 Subject: [PATCH] Changing back from stream_socket_shutdown to fclose to fix UT in HHVM --- src/Connection/Socket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection/Socket.php b/src/Connection/Socket.php index c5d143c..f108cf7 100644 --- a/src/Connection/Socket.php +++ b/src/Connection/Socket.php @@ -54,7 +54,7 @@ public function disconnect() if (!$this->isConnected()) { return; } - stream_socket_shutdown($this->socket, STREAM_SHUT_RDWR); + fclose($this->socket); $this->socket = null; }