changing xmlrpc_encode to phpxmlrpc�_encode, xmlrpc_decode to phpxmlrpc_decode

git-svn-id: https://develop.svn.wordpress.org/trunk@1034 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
michelvaldrighi 2004-03-30 21:25:21 +00:00
parent a5a8f26c81
commit ce8d502161
2 changed files with 8 additions and 8 deletions

View File

@ -1055,8 +1055,8 @@ function iso8601_decode($idate, $utc=0) {
* * * *
* author: Dan Libby (dan@libby.com) * * author: Dan Libby (dan@libby.com) *
****************************************************************/ ****************************************************************/
if (!function_exists('xmlrpc_decode')) { if (!function_exists('phpxmlrpc_decode')) {
function xmlrpc_decode($xmlrpc_val) { function phpxmlrpc_decode($xmlrpc_val) {
$kind = $xmlrpc_val->kindOf(); $kind = $xmlrpc_val->kindOf();
if($kind == "scalar") { if($kind == "scalar") {
@ -1067,7 +1067,7 @@ if (!function_exists('xmlrpc_decode')) {
$arr = array(); $arr = array();
for($i = 0; $i < $size; $i++) { for($i = 0; $i < $size; $i++) {
$arr[]=xmlrpc_decode($xmlrpc_val->arraymem($i)); $arr[]=phpxmlrpc_decode($xmlrpc_val->arraymem($i));
} }
return $arr; return $arr;
} }
@ -1076,7 +1076,7 @@ if (!function_exists('xmlrpc_decode')) {
$arr = array(); $arr = array();
while(list($key,$value)=$xmlrpc_val->structeach()) { while(list($key,$value)=$xmlrpc_val->structeach()) {
$arr[$key] = xmlrpc_decode($value); $arr[$key] = phpxmlrpc_decode($value);
} }
return $arr; return $arr;
} }
@ -1095,8 +1095,8 @@ if (!function_exists('xmlrpc_decode')) {
* * * *
* author: Dan Libby (dan@libby.com) * * author: Dan Libby (dan@libby.com) *
****************************************************************/ ****************************************************************/
if (!function_exists('xmlrpc_encode')) { if (!function_exists('phpxmlrpc_encode')) {
function xmlrpc_encode($php_val) { function phpxmlrpc_encode($php_val) {
global $xmlrpcInt; global $xmlrpcInt;
global $xmlrpcDouble; global $xmlrpcDouble;
global $xmlrpcString; global $xmlrpcString;
@ -1112,7 +1112,7 @@ if (!function_exists('xmlrpc_encode')) {
case "object": case "object":
$arr = array(); $arr = array();
while (list($k,$v) = each($php_val)) { while (list($k,$v) = each($php_val)) {
$arr[$k] = xmlrpc_encode($v); $arr[$k] = phpxmlrpc_encode($v);
} }
$xmlrpc_val->addStruct($arr); $xmlrpc_val->addStruct($arr);
break; break;

View File

@ -579,7 +579,7 @@ function weblog_ping($server = '', $path = '') {
print "</pre>\n"; print "</pre>\n";
} }
$v=@xmlrpc_decode($r->value()); $v = @phpxmlrpc_decode($r->value());
if (!$r->faultCode()) { if (!$r->faultCode()) {
$result['message'] = "<p class=\"rpcmsg\">"; $result['message'] = "<p class=\"rpcmsg\">";
$result['message'] = $result['message'] . $v["message"] . "<br />\n"; $result['message'] = $result['message'] . $v["message"] . "<br />\n";