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-- assert() - Remove the assert callback --INI-- assert.active=1 --FILE-- <?php fun..

Decoded Output download

--TEST--
assert() - Remove the assert callback
--INI--
assert.active=1
--FILE--
<?php

function f1()
{
    echo "foo
";
}

assert_options(ASSERT_CALLBACK, "f1");
var_dump(assert_options(ASSERT_CALLBACK));

try {
    assert(false);
} catch (AssertionError $exception) {
    echo $exception->getMessage() . "
";
}

echo "
";

assert_options(ASSERT_CALLBACK, null);
var_dump(assert_options(ASSERT_CALLBACK));

try {
    assert(false);
} catch (AssertionError $exception) {
    echo $exception->getMessage() . "
";
}

?>
--EXPECT--
string(2) "f1"
foo
assert(false)

NULL
assert(false)

Did this file decode correctly?

Original Code

--TEST--
assert() - Remove the assert callback
--INI--
assert.active=1
--FILE--
<?php

function f1()
{
    echo "foo\n";
}

assert_options(ASSERT_CALLBACK, "f1");
var_dump(assert_options(ASSERT_CALLBACK));

try {
    assert(false);
} catch (AssertionError $exception) {
    echo $exception->getMessage() . "\n";
}

echo "\n";

assert_options(ASSERT_CALLBACK, null);
var_dump(assert_options(ASSERT_CALLBACK));

try {
    assert(false);
} catch (AssertionError $exception) {
    echo $exception->getMessage() . "\n";
}

?>
--EXPECT--
string(2) "f1"
foo
assert(false)

NULL
assert(false)

Function Calls

None

Variables

None

Stats

MD5 e821a778e680fcc10567677e7f2f9237
Eval Count 0
Decode Time 99 ms