walkor 9 lat temu
rodzic
commit
72dcfe49b7
1 zmienionych plików z 1 dodań i 1 usunięć
  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;