Просмотр исходного кода

Bugfix: using the right variable in Predis\Pipeline\SafeExecutor makes things work.

Daniele Alessandri 15 лет назад
Родитель
Сommit
c01d185448
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/Predis.php

+ 2 - 2
lib/Predis.php

@@ -1561,7 +1561,7 @@ class SafeExecutor implements IExecutor {
 
         foreach ($commands as $command) {
             try {
-                $this->_connection->writeCommand($command);
+                $connection->writeCommand($command);
             }
             catch (CommunicationException $exception) {
                 return array_fill(0, $sizeofPipe, $exception);
@@ -1572,7 +1572,7 @@ class SafeExecutor implements IExecutor {
             $command = $commands[$i];
             unset($commands[$i]);
             try {
-                $response = $this->_connection->readResponse($command);
+                $response = $connection->readResponse($command);
                 $values[] = ($response instanceof \Iterator
                     ? iterator_to_array($response)
                     : $response