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-- Tests adding a TTL-ed value, part 3 --DESCRIPTION-- In part 3, we check to verify..

Decoded Output download

--TEST--
Tests adding a TTL-ed value, part 3
--DESCRIPTION--
In part 3, we check to verify we no longer have a value.
--FILE--
<?php
require_once '../includes/runner.php';

$adapterName = 'PEAR2\Cache\SHM\Adapter\' . $adapter;
$object = new $adapterName('TEST');

try {
    $object->get('key');
    echo 'TTL value part 3: key did not expire.';
} catch(Exception $e) {
    assertSame(
        isset($_GET['nokeycode']) ? (int) $_GET['nokeycode'] : 200,
        $e->getCode(), __FILE__
    );
}
?>
--EXPECT--

Did this file decode correctly?

Original Code

--TEST--
Tests adding a TTL-ed value, part 3
--DESCRIPTION--
In part 3, we check to verify we no longer have a value.
--FILE--
<?php
require_once '../includes/runner.php';

$adapterName = 'PEAR2\Cache\SHM\Adapter\\' . $adapter;
$object = new $adapterName('TEST');

try {
    $object->get('key');
    echo 'TTL value part 3: key did not expire.';
} catch(Exception $e) {
    assertSame(
        isset($_GET['nokeycode']) ? (int) $_GET['nokeycode'] : 200,
        $e->getCode(), __FILE__
    );
}
?>
--EXPECT--

Function Calls

None

Variables

None

Stats

MD5 1a132c18f8b16fda22cdec86ee00a13d
Eval Count 0
Decode Time 111 ms