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 /** * Created by PhpStorm. * User: heize * Date: 16/3/9 * Time: 1:50 */ namesp..

Decoded Output download

<?php
/**
 * Created by PhpStorm.
 * User: heize
 * Date: 16/3/9
 * Time: 1:50
 */

namespace Zan\Framework\Test\Network\Http;

use Zan\Framework\Utilities\Types\Time;
use Zan\Framework\Utilities\Types\URL;
use Zan\Framework\Sdk\Cdn\Qiniu;

class UrlTest extends \TestCase
{

    public function setUp()
    {
        $urlConfig = require __DIR__ . '/config/url.php';
        URL::setConfig($urlConfig);
    }

    public function tearDown()
    {
    }

    public function testSite()
    {
        $url = URL::site("/showcase/goods/allgoods?kdt_id=12312#abc", 'pay');
        $this->assertEquals('http://www.pay.com/showcase/goods/allgoods?kdt_id=12312#abc', $url, 'URL::site fail');

        $url = URL::site("http:/www.koudaitong.com/showcase");
        $this->assertEquals("http:/www.koudaitong.com/showcase", $url, 'URL::site fail');


        $_SERVER['HTTP_HOST'] = 'www.koudaitong.com';
        $url = URL::site("/showcase?kdt_id=123", true, URL::SCHEME_HTTPS);
        $this->assertEquals("https://www.koudaitong.com/showcase?kdt_id=123", $url, 'URL::site fail');

    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Created by PhpStorm.
 * User: heize
 * Date: 16/3/9
 * Time: 1:50
 */

namespace Zan\Framework\Test\Network\Http;

use Zan\Framework\Utilities\Types\Time;
use Zan\Framework\Utilities\Types\URL;
use Zan\Framework\Sdk\Cdn\Qiniu;

class UrlTest extends \TestCase
{

    public function setUp()
    {
        $urlConfig = require __DIR__ . '/config/url.php';
        URL::setConfig($urlConfig);
    }

    public function tearDown()
    {
    }

    public function testSite()
    {
        $url = URL::site("/showcase/goods/allgoods?kdt_id=12312#abc", 'pay');
        $this->assertEquals('http://www.pay.com/showcase/goods/allgoods?kdt_id=12312#abc', $url, 'URL::site fail');

        $url = URL::site("http:/www.koudaitong.com/showcase");
        $this->assertEquals("http:/www.koudaitong.com/showcase", $url, 'URL::site fail');


        $_SERVER['HTTP_HOST'] = 'www.koudaitong.com';
        $url = URL::site("/showcase?kdt_id=123", true, URL::SCHEME_HTTPS);
        $this->assertEquals("https://www.koudaitong.com/showcase?kdt_id=123", $url, 'URL::site fail');

    }
}

Function Calls

None

Variables

None

Stats

MD5 56c5231ac8d39df82bf7236b901f8a14
Eval Count 0
Decode Time 92 ms