ソースを参照

Make it possible to use any type of callable to execute a transaction.

Daniele Alessandri 13 年 前
コミット
9dcabc3264
1 ファイル変更1 行追加1 行削除
  1. 1 1
      lib/Predis/Transaction/MultiExecContext.php

+ 1 - 1
lib/Predis/Transaction/MultiExecContext.php

@@ -390,7 +390,7 @@ class MultiExecContext
         $this->flagState(self::STATE_INSIDEBLOCK);
 
         try {
-            $callable($this);
+            call_user_func($callable, $this);
         }
         catch (CommunicationException $exception) {
             $blockException = $exception;