Quellcode durchsuchen

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

Daniele Alessandri vor 15 Jahren
Ursprung
Commit
c01d185448
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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