1--TEST-- 2XMLRPCext backend test setting explicit type for value 3--SKIPIF-- 4<?php 5if (!function_exists('xmlrpc_server_create')) { 6 print "Skip XMLRPC extension unavailable"; 7} 8?> 9--FILE-- 10<?php 11set_include_path(realpath(dirname(__FILE__) . '/../../../../') . PATH_SEPARATOR . get_include_path()); 12require_once 'XML/RPC2/Value.php'; 13require_once 'XML/RPC2/Backend.php'; 14XML_RPC2_Backend::setBackend('xmlrpcext'); 15var_dump(XML_RPC2_Value::createFromNative('Hello World', 'base64')); 16?> 17--EXPECT-- 18object(stdClass)#1 (2) { 19 ["scalar"]=> 20 string(11) "Hello World" 21 ["xmlrpc_type"]=> 22 string(6) "base64" 23} 24