From 33559103ddf02648837c85ed72425ac06c06080c Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Mon, 2 Feb 2009 18:50:38 +0000 Subject: replaced all sizeof() in favor of count() - aliases are teh sux0r --- system/libraries/Xmlrpcs.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'system/libraries/Xmlrpcs.php') diff --git a/system/libraries/Xmlrpcs.php b/system/libraries/Xmlrpcs.php index cdbdee955..3f538492a 100644 --- a/system/libraries/Xmlrpcs.php +++ b/system/libraries/Xmlrpcs.php @@ -204,7 +204,7 @@ class CI_Xmlrpcs extends CI_Xmlrpc $m = new XML_RPC_Message($parser_object->xh[$parser]['method']); $plist=''; - for($i=0; $i < sizeof($parser_object->xh[$parser]['params']); $i++) + for($i=0; $i < count($parser_object->xh[$parser]['params']); $i++) { if ($this->debug === TRUE) { @@ -289,13 +289,13 @@ class CI_Xmlrpcs extends CI_Xmlrpc if (isset($this->methods[$methName]['signature'])) { $sig = $this->methods[$methName]['signature']; - for($i=0; $iparams)+1) + if (count($current_sig) == count($m->params)+1) { - for($n=0; $n < sizeof($m->params); $n++) + for($n=0; $n < count($m->params); $n++) { $p = $m->params[$n]; $pt = ($p->kindOf() == 'scalar') ? $p->scalarval() : $p->kindOf(); @@ -385,11 +385,11 @@ class CI_Xmlrpcs extends CI_Xmlrpc $sigs = array(); $signature = $this->methods[$method_name]['signature']; - for($i=0; $i < sizeof($signature); $i++) + for($i=0; $i < count($signature); $i++) { $cursig = array(); $inSig = $signature[$i]; - for($j=0; $jaddParam(new XML_RPC_Values($value[1][$i], 'string')); } @@ -510,7 +510,7 @@ class CI_Xmlrpcs extends CI_Xmlrpc return $this->multicall_error('notarray'); list($a,$b)=each($params->me); - $numParams = sizeof($b); + $numParams = count($b); $msg = new XML_RPC_Message($scalar_value); for ($i = 0; $i < $numParams; $i++) -- cgit v1.2.3-24-g4f1b