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() - basic - check that assert runs when assert.active is set to 1. --INI-..

Decoded Output download

--TEST--
assert() - basic - check  that assert runs when assert.active is set to 1.
--INI--
assert.active = 1
assert.warning = 0
assert.callback = f1
assert.bail = 0
assert.exception=0
--FILE--
<?php
function f1()
{
    echo "f1 called
";
}

var_dump($r2 = assert(0));
var_dump($r2 = assert(1));
?>
--EXPECT--
f1 called
bool(false)
bool(true)

Did this file decode correctly?

Original Code

--TEST--
assert() - basic - check  that assert runs when assert.active is set to 1.
--INI--
assert.active = 1
assert.warning = 0
assert.callback = f1
assert.bail = 0
assert.exception=0
--FILE--
<?php
function f1()
{
    echo "f1 called\n";
}

var_dump($r2 = assert(0));
var_dump($r2 = assert(1));
?>
--EXPECT--
f1 called
bool(false)
bool(true)

Function Calls

assert 1

Variables

None

Stats

MD5 cfb5249d504a645bef9453f9f9593f68
Eval Count 0
Decode Time 85 ms