Function php_xmlrpc_decode
Takes an xmlrpc value in PHP xmlrpcval object format and translates it into native PHP types.
Works with xmlrpc message objects as input, too.
Given proper options parameter, can rebuild generic php object instances (provided those have been encoded to xmlrpc format using a corresponding option in php_xmlrpc_encode()) PLEASE NOTE that rebuilding php objects involves calling their constructor function. This means that the remote communication end can decide which php code will get executed on your server, leaving the door possibly open to 'php-injection' style of attacks (provided you have some classes defined on your server that might wreak havoc if instances are built outside an appropriate context). Make sure you trust the remote server/client before eanbling this!
Located at wa-apps/blog/plugins/import/vendors/xmlrpc/lib/xmlrpc.php
|
$xmlrpc_val |
|
array |
$options = array() |
if 'decode_php_objs' is set in the options array, xmlrpc structs can be decoded into php objects; if 'dates_as_objects' is set xmlrpc datetimes are decoded as php DateTime objects (standard is |
mixed
|