| Server IP : 217.160.0.95 / Your IP : 216.73.217.78 Web Server : Apache System : Linux infong-uk56 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64 User : u78863098 ( 10368940) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/php8.4/test/Cache_Lite/tests/ |
Upload File : |
--TEST--
Cache_Lite::Cache_Lite (PEAR bug #19711)
--INI--
track_errors=Off
--FILE--
<?php
/**
* Test for Pear Bug #19711
*
* @see https://pear.php.net/bugs/bug.php?id=19711
*
* @package Cache_Lite
* @category Caching
* @author Markus Tacker <tacker@php.net>
*/
require_once __DIR__ . '/../Cache/Lite.php';
require_once __DIR__ . '/tmpdir.inc';
$options = array(
'cacheDir' => tmpDir() . '/',
'lifeTime' => 60,
'automaticSerialization' => true
);
$Cache_Lite = new Cache_Lite($options);
$data = array('apples', 'oranges');
$Cache_Lite->save($data, 'array_cached');
$fetched_data = $Cache_Lite->get('array_cached');
var_dump($data === $fetched_data);
?>
--GET--
--POST--
--EXPECT--
bool(true)