diff --git a/src/Hprose/Service.php b/src/Hprose/Service.php index 384201a2..8500b33f 100644 --- a/src/Hprose/Service.php +++ b/src/Hprose/Service.php @@ -14,7 +14,7 @@ * * * hprose service class for php 5.3+ * * * - * LastModified: Mar 7, 2017 * + * LastModified: Mar 10, 2017 * * Author: Ma Bingyao * * * \**********************************************************/ @@ -639,7 +639,7 @@ public function addAsyncMissingFunction($func, array $options = array()) { public function addFunctions(array $funcs, array $aliases = array(), array $options = array()) { - if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_key($aliases))) { + if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_keys($aliases))) { $options = $aliases; $aliases = array(); } @@ -662,7 +662,7 @@ public function addFunctions(array $funcs, public function addAsyncFunctions(array $funcs, array $aliases = array(), array $options = array()) { - if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_key($aliases))) { + if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_keys($aliases))) { $options = $aliases; $aliases = array(); } @@ -701,7 +701,7 @@ public function addMethods($methods, } $aliases = array(); } - else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_key($aliases))) { + else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_keys($aliases))) { $options = $aliases; $aliases = array(); } @@ -733,7 +733,7 @@ public function addAsyncMethods($methods, } $aliases = array(); } - else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_key($aliases))) { + else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_keys($aliases))) { $options = $aliases; $aliases = array(); }