Преглед на файлове

Do not parse the response to a command if we get a QUEUED status reply from the server.

Daniele Alessandri преди 15 години
родител
ревизия
5c95b9cdcc
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      lib/Predis.php

+ 2 - 2
lib/Predis.php

@@ -572,8 +572,8 @@ class Connection implements IConnection {
     public function readResponse(Command $command) {
         $socket   = $this->getSocket();
         $handler  = Response::getPrefixHandler(fgetc($socket));
-        $response = $command->parseResponse($handler($socket));
-        return $response;
+        $response = $handler($socket);
+        return $response !== 'QUEUED' ? $command->parseResponse($response) : $response;
     }
 
     public function rawCommand($rawCommandData, $closesConnection = false) {