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 1 --DESCRIPTION-- In part 1, we set the value. ..
Decoded Output download
--TEST--
Tests adding a TTL-ed value, part 1
--DESCRIPTION--
In part 1, we set the value.
--FILE--
<?php
require_once '../includes/runner.php';
$adapterName = 'PEAR2\Cache\SHM\Adapter\' . $adapter;
$object = new $adapterName('TEST');
assertSame(true, $object->add('key', 'value', 2), __FILE__);
assertSame(false, $object->add('key', 'value'), __FILE__);
assertSame('value', $object->get('key'), __FILE__);
?>
--EXPECT--
Did this file decode correctly?
Original Code
--TEST--
Tests adding a TTL-ed value, part 1
--DESCRIPTION--
In part 1, we set the value.
--FILE--
<?php
require_once '../includes/runner.php';
$adapterName = 'PEAR2\Cache\SHM\Adapter\\' . $adapter;
$object = new $adapterName('TEST');
assertSame(true, $object->add('key', 'value', 2), __FILE__);
assertSame(false, $object->add('key', 'value'), __FILE__);
assertSame('value', $object->get('key'), __FILE__);
?>
--EXPECT--
Function Calls
None |
Stats
MD5 | 15c0bd37727584fa764f93e45f80d50f |
Eval Count | 0 |
Decode Time | 65 ms |