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 /** * This file is part of the Zephir. * * (c) Phalcon Team <[email protected]..

Decoded Output download

<?php

/**
 * This file is part of the Zephir.
 *
 * (c) Phalcon Team <[email protected]>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Zephir\Statements\Let;

use Zephir\Code\Printer;
use Zephir\CompilationContext;
use Zephir\Variable\Variable as ZephirVariable;

/**
 * ExportSymbolString.
 *
 * Exports a symbol to the current PHP symbol table using a variable as parameter
 */
class ExportSymbolString extends ExportSymbol
{
    /**
     * Compiles {"var"} = {expr}.
     */

    /**
     * @param CompilationContext|null $compilationContext
     * @param ZephirVariable|null     $symbolVariable
     * @param ZephirVariable          $variable
     * @param Printer|null            $codePrinter
     * @param array|null              $statement
     *
     * @return void
     */
    protected function getOutput(
        ?CompilationContext $compilationContext,
        ?ZephirVariable $symbolVariable,
        ZephirVariable $variable,
        ?Printer $codePrinter,
        ?array $statement
    ): void {
        $symbol = $compilationContext->backend->getVariableCode($variable);
        $codePrinter->output(
            'if (zephir_set_symbol_str(SS("' . $statement['variable'] . '"), ' . $symbol . ') == FAILURE) {'
        );
        $codePrinter->output('  return;');
        $codePrinter->output('}');
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * This file is part of the Zephir.
 *
 * (c) Phalcon Team <[email protected]>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Zephir\Statements\Let;

use Zephir\Code\Printer;
use Zephir\CompilationContext;
use Zephir\Variable\Variable as ZephirVariable;

/**
 * ExportSymbolString.
 *
 * Exports a symbol to the current PHP symbol table using a variable as parameter
 */
class ExportSymbolString extends ExportSymbol
{
    /**
     * Compiles {"var"} = {expr}.
     */

    /**
     * @param CompilationContext|null $compilationContext
     * @param ZephirVariable|null     $symbolVariable
     * @param ZephirVariable          $variable
     * @param Printer|null            $codePrinter
     * @param array|null              $statement
     *
     * @return void
     */
    protected function getOutput(
        ?CompilationContext $compilationContext,
        ?ZephirVariable $symbolVariable,
        ZephirVariable $variable,
        ?Printer $codePrinter,
        ?array $statement
    ): void {
        $symbol = $compilationContext->backend->getVariableCode($variable);
        $codePrinter->output(
            'if (zephir_set_symbol_str(SS("' . $statement['variable'] . '"), ' . $symbol . ') == FAILURE) {'
        );
        $codePrinter->output('  return;');
        $codePrinter->output('}');
    }
}

Function Calls

None

Variables

None

Stats

MD5 fdfc1f29709c8e98347b15c2ffed1dc5
Eval Count 0
Decode Time 88 ms