Heray-Was-Here
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
Directory :  /usr/lib/php8.4/test/Cache_Lite/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/php8.4/test/Cache_Lite/tests/pearbug18328.phpt
--TEST--
Cache_Lite::Cache_Lite (PEAR bug #18328)
--INI--
track_errors=Off
--FILE--
<?php

/**
 * Process for test pearbug18328
 * 
 * @see https://pear.php.net/bugs/bug.php?id=18328
 * @author Markus Tacker <tacker@php.net>
 */

require_once __DIR__ . '/../Cache/Lite.php';
$c = new Cache_Lite(array('cacheDir' => '.', 'lifeTime' => 60,));
var_dump($c->_cacheDir === '.'); 
$c = new Cache_Lite(array('lifeTime' => 60));
var_dump($c->_cacheDir === (function_exists('sys_get_temp_dir') ? sys_get_temp_dir() . DIRECTORY_SEPARATOR : '/tmp/'));

--GET--
--POST--
--EXPECT--
bool(true)
bool(true)

Hry