403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.91
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/usr/lib/php8.4/test/XML_RPC2/tests/XML_RPC2/phpBackend/encoding/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/php8.4/test/XML_RPC2/tests/XML_RPC2/phpBackend/encoding/request.phpt
--TEST--
Request XML-RPC encoding (Php Backend)
--FILE--
<?php
set_include_path(realpath(dirname(__FILE__) . '/../../../../') . PATH_SEPARATOR . get_include_path());
require_once 'XML/RPC2/Backend/Php/Request.php';
require_once 'XML/RPC2/Backend/Php/Value/Datetime.php';
$request = new XML_RPC2_Backend_Php_Request('foo.bar');
$request->addParameter('a string');
$request->addParameter(125);
$request->addParameter(125.2);
$request->addParameter(new XML_RPC2_Backend_Php_Value_Datetime('2005-01-03'));
$request->addParameter(true);
$request->addParameter(false);
var_dump($request->encode());
?>
--EXPECT--
string(441) "<?xml version="1.0" encoding="utf-8"?>
<methodCall><methodName>foo.bar</methodName><params><param><value><string>a string</string></value></param><param><value><int>125</int></value></param><param><value><double>125.2</double></value></param><param><value><dateTime.iso8601>2005-01-03</dateTime.iso8601></value></param><param><value><boolean>1</boolean></value></param><param><value><boolean>0</boolean></value></param></params></methodCall>"

Youez - 2016 - github.com/yon3zu
LinuXploit