walkor hace 9 años
padre
commit
72dcfe49b7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Connection/TcpConnection.php

+ 1 - 1
Connection/TcpConnection.php

@@ -363,7 +363,7 @@ class TcpConnection extends ConnectionInterface
         $buffer = fread($socket, self::READ_BUFFER_SIZE);
 
         // Check connection closed.
-        if (!$buffer) {
+        if ($buffer === '' || $buffer === false) {
             if ($check_eof && (feof($socket) || !is_resource($socket) || $buffer === false)) {
                 $this->destroy();
                 return;