Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php use Zan\Framework\Network\Common\TcpClient; use Zan\Framework\Network\Connection\Con..
Decoded Output download
<?php
use Zan\Framework\Network\Common\TcpClient;
use Zan\Framework\Network\Connection\ConnectionManager;
use Zan\Framework\Testing\TaskTest;
/**
* Created by PhpStorm.
* User: marsnowxiao
* Date: 2017/3/29
* Time: 8:19
*/
class TcpClientTest extends TaskTest
{
public function taskTcp()
{
try {
$connection = (yield ConnectionManager::getInstance()->get("tcp.echo"));
$tcpClient = new TcpClient($connection);
$request = "Hello TcpClientTest";
$response = (yield $tcpClient->send($request));
$this->assertEquals($response, $request, "tcp echo test failed");
} catch (\Exception $e) {
var_dump($e->getMessage());
return;
}
}
} ?>
Did this file decode correctly?
Original Code
<?php
use Zan\Framework\Network\Common\TcpClient;
use Zan\Framework\Network\Connection\ConnectionManager;
use Zan\Framework\Testing\TaskTest;
/**
* Created by PhpStorm.
* User: marsnowxiao
* Date: 2017/3/29
* Time: 8:19
*/
class TcpClientTest extends TaskTest
{
public function taskTcp()
{
try {
$connection = (yield ConnectionManager::getInstance()->get("tcp.echo"));
$tcpClient = new TcpClient($connection);
$request = "Hello TcpClientTest";
$response = (yield $tcpClient->send($request));
$this->assertEquals($response, $request, "tcp echo test failed");
} catch (\Exception $e) {
var_dump($e->getMessage());
return;
}
}
}
Function Calls
None |
Stats
MD5 | 0196896519fa951a15121db755c65ed4 |
Eval Count | 0 |
Decode Time | 118 ms |