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