Procházet zdrojové kódy

Fixed bug reading zero-length values from a bulk response

Jordi Boggiano před 14 roky
rodič
revize
c1587ccf54
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -1832,7 +1832,7 @@ class ResponseBulkHandler implements IResponseHandler {
             ));
         }
         if ($length >= 0) {
-          return $length > 0 ? substr($connection->readBytes($length + 2), 0, -2) : '';
+            return substr($connection->readBytes($length + 2), 0, -2);
         }
         if ($length == -1) {
             return null;