Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #41037 (unregister_tick_function() inside the tick function crash PHP) --FILE..

Decoded Output download

--TEST--
Bug #41037 (unregister_tick_function() inside the tick function crash PHP)
--FILE--
<?php

function a() {
    echo "hello
";
    try {
        unregister_tick_function('a');
    } catch (Error $exception) {
        echo $exception->getMessage() . "
";
    }
}

declare (ticks=1) {
    register_tick_function('a');

    echo "Done
";
}
?>
--EXPECT--
hello
Registered tick function cannot be unregistered while it is being executed
Done
hello
Registered tick function cannot be unregistered while it is being executed

Did this file decode correctly?

Original Code

--TEST--
Bug #41037 (unregister_tick_function() inside the tick function crash PHP)
--FILE--
<?php

function a() {
    echo "hello\n";
    try {
        unregister_tick_function('a');
    } catch (Error $exception) {
        echo $exception->getMessage() . "\n";
    }
}

declare (ticks=1) {
    register_tick_function('a');

    echo "Done\n";
}
?>
--EXPECT--
hello
Registered tick function cannot be unregistered while it is being executed
Done
hello
Registered tick function cannot be unregistered while it is being executed

Function Calls

None

Variables

None

Stats

MD5 191736eff65023b6c9e63784b4709b99
Eval Count 0
Decode Time 94 ms