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);

/**
 * Custom ArgInfo definitions for cross PHP versions support.
 * These code blocks will be used inside `.zep.h` files.
 */
return [
    'Serializable' => [
        'unserialize' => [
            '#if PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_INFO(0, serialized)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],

    'Phalcon\Storage\Serializer\AbstractSerializer' => [
        'unserialize' => [
            '#if PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_INFO(0, serialized)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],

    'SessionHandlerInterface' => [
        'gc' => [
            '#if PHP_VERSION_ID >= 80100' => [
                'ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(__ce__, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#elif PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_INFO(0, maxlifetime)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],

    'Phalcon\Session\Adapter\Noop' => [
        'gc' => [
            '#if PHP_VERSION_ID >= 80100' => [
                'ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(__ce__, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#elif PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_INFO(0, maxlifetime)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],
];
 ?>

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);

/**
 * Custom ArgInfo definitions for cross PHP versions support.
 * These code blocks will be used inside `.zep.h` files.
 */
return [
    'Serializable' => [
        'unserialize' => [
            '#if PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_INFO(0, serialized)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],

    'Phalcon\Storage\Serializer\AbstractSerializer' => [
        'unserialize' => [
            '#if PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(__ce__, 0, 1, IS_VOID, 0)',
                '    ZEND_ARG_INFO(0, serialized)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],

    'SessionHandlerInterface' => [
        'gc' => [
            '#if PHP_VERSION_ID >= 80100' => [
                'ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(__ce__, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#elif PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_INFO(0, maxlifetime)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],

    'Phalcon\Session\Adapter\Noop' => [
        'gc' => [
            '#if PHP_VERSION_ID >= 80100' => [
                'ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(__ce__, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#elif PHP_VERSION_ID >= 80000' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_TYPE_INFO(0, maxlifetime, IS_LONG, 0)',
                'ZEND_END_ARG_INFO()',
            ],
            '#else' => [
                'ZEND_BEGIN_ARG_INFO_EX(__ce__, 0, 0, 1)',
                '    ZEND_ARG_INFO(0, maxlifetime)',
                'ZEND_END_ARG_INFO()',
            ],
        ],
    ],
];

Function Calls

None

Variables

None

Stats

MD5 bfaa0802bebeebfbd2dceea3d8298137
Eval Count 0
Decode Time 95 ms