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:
parent
a5a8f26c81
commit
ce8d502161
|
@ -1055,8 +1055,8 @@ function iso8601_decode($idate, $utc=0) {
|
|||
* *
|
||||
* author: Dan Libby (dan@libby.com) *
|
||||
****************************************************************/
|
||||
if (!function_exists('xmlrpc_decode')) {
|
||||
function xmlrpc_decode($xmlrpc_val) {
|
||||
if (!function_exists('phpxmlrpc_decode')) {
|
||||
function phpxmlrpc_decode($xmlrpc_val) {
|
||||
$kind = $xmlrpc_val->kindOf();
|
||||
|
||||
if($kind == "scalar") {
|
||||
|
@ -1067,7 +1067,7 @@ if (!function_exists('xmlrpc_decode')) {
|
|||
$arr = array();
|
||||
|
||||
for($i = 0; $i < $size; $i++) {
|
||||
$arr[]=xmlrpc_decode($xmlrpc_val->arraymem($i));
|
||||
$arr[]=phpxmlrpc_decode($xmlrpc_val->arraymem($i));
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
@ -1076,7 +1076,7 @@ if (!function_exists('xmlrpc_decode')) {
|
|||
$arr = array();
|
||||
|
||||
while(list($key,$value)=$xmlrpc_val->structeach()) {
|
||||
$arr[$key] = xmlrpc_decode($value);
|
||||
$arr[$key] = phpxmlrpc_decode($value);
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
@ -1095,8 +1095,8 @@ if (!function_exists('xmlrpc_decode')) {
|
|||
* *
|
||||
* author: Dan Libby (dan@libby.com) *
|
||||
****************************************************************/
|
||||
if (!function_exists('xmlrpc_encode')) {
|
||||
function xmlrpc_encode($php_val) {
|
||||
if (!function_exists('phpxmlrpc_encode')) {
|
||||
function phpxmlrpc_encode($php_val) {
|
||||
global $xmlrpcInt;
|
||||
global $xmlrpcDouble;
|
||||
global $xmlrpcString;
|
||||
|
@ -1112,7 +1112,7 @@ if (!function_exists('xmlrpc_encode')) {
|
|||
case "object":
|
||||
$arr = array();
|
||||
while (list($k,$v) = each($php_val)) {
|
||||
$arr[$k] = xmlrpc_encode($v);
|
||||
$arr[$k] = phpxmlrpc_encode($v);
|
||||
}
|
||||
$xmlrpc_val->addStruct($arr);
|
||||
break;
|
||||
|
|
|
@ -579,7 +579,7 @@ function weblog_ping($server = '', $path = '') {
|
|||
print "</pre>\n";
|
||||
}
|
||||
|
||||
$v=@xmlrpc_decode($r->value());
|
||||
$v = @phpxmlrpc_decode($r->value());
|
||||
if (!$r->faultCode()) {
|
||||
$result['message'] = "<p class=\"rpcmsg\">";
|
||||
$result['message'] = $result['message'] . $v["message"] . "<br />\n";
|
||||
|
|
Loading…
Reference in New Issue