403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.102
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/php7.3/test/Cache_Lite/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/php7.3/test/Cache_Lite/tests/pearbug7618.phpt
--TEST--
pearbug7618
--FILE--
<?php

require_once __DIR__ . '/callcache.inc';
require_once __DIR__ . '/tmpdir.inc';
require_once __DIR__ . '/cache_lite_base.inc';

$options = array(
    'cacheDir' => tmpDir() . '/',
    'lifeTime' => 60,
    'automaticSerialization' => true
);

$cache = new Cache_Lite($options);
$cacheid = "testid";
$tmpar = array();
for ($i=0; $i<2; $i++) {
    $ar[] = 'foo';
    if ($cache->save($ar,$cacheid)) {
        echo "TRUE\n";
    } else {
        echo "FALSE\n";
    }
    if ($data = $cache->get($cacheid)) {
        echo($data[0] . "\n");
    } else {
        echo "FALSE\n";
    }
}
$cache->remove('testid');

?>
--EXPECT--
TRUE
foo
TRUE
foo

Youez - 2016 - github.com/yon3zu
LinuXploit