Parcourir la source

Repeat with me: do not blindly copy and paste.

Daniele Alessandri il y a 14 ans
Parent
commit
f6bd5757af
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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);
         }