OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
php84
/
usr
/
share
/
pear
/
test
/
XML_RPC
/
tests
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/29/2025 12:55:23 PM
rwxr-xr-x
📄
actual-request.php
1.79 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
allgot.inc
1.25 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
empty-value-struct.php
1.76 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
empty-value.php
1.74 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
encode.php
2.2 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
extra-lines.php
2.2 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
protoport.php
10.51 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
test_Dump.php
2.09 KB
12/17/2024 06:12:51 PM
rw-r--r--
📄
types.php
2.49 KB
12/17/2024 06:12:51 PM
rw-r--r--
Editing: allgot.inc
Close
<?php /** * Parses the "return" value from some of our test scripts. * * PHP versions 4 and 5 * * @category Web Services * @package XML_RPC * @author Daniel Convissor <danielc@php.net> * @copyright 2005-2010 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License * @version SVN: $Id: allgot.inc 293223 2010-01-07 15:32:19Z danielc $ * @link http://pear.php.net/package/XML_RPC * @since File available since Release 1.4.4 */ ob_start(); function returnAllGot($params) { $out = ''; $count = count($params->params); for ($i = 0; $i < $count; $i++) { $param = $params->getParam($i); if (!XML_RPC_Value::isValue($param)) { $out .= "parameter $i was error: $param\n"; continue; } $got = XML_RPC_Decode($param); $out .= "param $i: " . var_export($got, true) . "\n"; } $val = new XML_RPC_Value($out, 'string'); return new XML_RPC_Response($val); } $server = new XML_RPC_Server( array( 'allgot' => array( 'function' => 'returnAllGot', ), ) ); $got = ob_get_clean(); if ($got == $expect) { echo "passed\n"; } else { echo "FAILED\n"; echo "Expected:\n$expect\n"; echo "Got:\n$got\n"; }