changing xmlrpc_encode to phpxmlrpc�_encode, xmlrpc_decode to phpxmlrpc_decode
git-svn-id: http://svn.automattic.com/wordpress/trunk@1034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f70d37fdde
commit
e077b55f7e
|
@ -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