Skip to content
Permalink
Browse files

Make XML_RPC further PHP 7.2 compatible (#556)

  • Loading branch information...
onli committed Feb 13, 2019
1 parent e0f230d commit b9617be068e77b44538b89e731bc92b95ba2d466
Showing with 6 additions and 5 deletions.
  1. +6 −5 bundled-libs/XML/RPC.php
@@ -1756,7 +1756,9 @@ function serializeval($o)
}
$ar = $o->me;
reset($ar);
list($typ, $val) = each($ar);
$typ = key($ar);
$val = current($ar);
next($ar);
return '<value>' . $this->serializedata($typ, $val) . "</value>\n";
}
@@ -1781,7 +1783,7 @@ function structreset()
*/
function structeach()
{
return each($this->me['struct']);
return [key($this->me['struct']), current($this->me['struct'])];
}
/**
@@ -1860,9 +1862,8 @@ function arraymem($m)
*/
function arraysize()
{
reset($this->me);
list($a, $b) = each($this->me);
return sizeof($b);
$typ = key($this->me);
return sizeof($typ);
}
/**

0 comments on commit b9617be

Please sign in to comment.
You can’t perform that action at this time.