Przeglądaj źródła

Repeat with me: do not blindly copy and paste.

Daniele Alessandri 14 lat temu
rodzic
commit
f6bd5757af
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      lib/Predis.php

+ 3 - 1
lib/Predis.php

@@ -1588,7 +1588,9 @@ class TextProtocol implements IRedisProtocol {
                 return;
             }
             if ($written === false || $written === 0) {
-                $this->onCommunicationException('Error while writing bytes to the server');
+                throw new CommunicationException(
+                    $connection, 'Error while writing bytes to the server'
+                );
             }
             $value = substr($buffer, $written);
         }