Explorar el Código

Repeat with me: do not blindly copy and paste.

Daniele Alessandri hace 14 años
padre
commit
f6bd5757af
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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);
         }