From c900d1d5b71ed9091a7cb7ebeef6450079e16484 Mon Sep 17 00:00:00 2001 From: Ma Bingyao Date: Sat, 3 Sep 2016 09:00:43 +0800 Subject: [PATCH] Changed getFailRound to getFailround Changed onFailSwitch to onFailswitch --- src/Hprose/Client.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } }