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 IntelliJ IDEA. * User: winglechen * Date: 15/11/28 * Time: 23:1..

Decoded Output download

<?php
/**
 * Created by IntelliJ IDEA.
 * User: winglechen
 * Date: 15/11/28
 * Time: 23:16
 */

namespace Zan\Framework\Test\Foundation\Coroutine\Task;

class Error extends Job {
    public function run() {
        try {
            $work = (yield $this->work());
            $this->context->set('work_response', $work);
        } catch (\Exception $e) {
            $this->context->set('exception_code', $e->getCode());
            $this->context->set('exception_msg', $e->getMessage());
            $this->context->set('exception', get_class($e));

            yield 'Error.catch.exception';
        }
    }

    private function work() {
        $step1 = (yield $this->step1());

        $this->context->set('step1_response', $step1);

        throw new ErrorException('ErrorException Msg',404);

        yield 'Error.work()';
    }

    private function step1() {
        yield 'step1';
    }
} ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Created by IntelliJ IDEA.
 * User: winglechen
 * Date: 15/11/28
 * Time: 23:16
 */

namespace Zan\Framework\Test\Foundation\Coroutine\Task;

class Error extends Job {
    public function run() {
        try {
            $work = (yield $this->work());
            $this->context->set('work_response', $work);
        } catch (\Exception $e) {
            $this->context->set('exception_code', $e->getCode());
            $this->context->set('exception_msg', $e->getMessage());
            $this->context->set('exception', get_class($e));

            yield 'Error.catch.exception';
        }
    }

    private function work() {
        $step1 = (yield $this->step1());

        $this->context->set('step1_response', $step1);

        throw new ErrorException('ErrorException Msg',404);

        yield 'Error.work()';
    }

    private function step1() {
        yield 'step1';
    }
}

Function Calls

None

Variables

None

Stats

MD5 875664a432bcde5b2965503af471b992
Eval Count 0
Decode Time 94 ms