diff --git a/src/Hprose/Client.php b/src/Hprose/Client.php index f84a3499..3ae0a821 100644 --- a/src/Hprose/Client.php +++ b/src/Hprose/Client.php @@ -43,7 +43,7 @@ abstract class Client extends HandlerManager { public $byref = false; public $simple = false; public $onError = null; - public $onFailSwitch = null; + public $onFailswitch = null; private $methodCache = array(); private static $clientFactories = array(); @@ -141,7 +141,7 @@ public final function setFailswitch($failswitch) { $this->failswitch = $failswitch; } - public final function getFailRound() { + public final function getFailround() { return $this->failround; } @@ -265,9 +265,9 @@ private function failswitch() { else { $this->failround++; } - $onFailSwitch = $this->onFailSwitch; - if (is_callable($onFailSwitch)) { - call_user_func($onFailSwitch, $this); + $onFailswitch = $this->onFailswitch; + if (is_callable($onFailswitch)) { + call_user_func($onFailswitch, $this); } }