HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //usr/local/lib/php/tests/Cache_Lite/tests/pearbug18328.phpt
--TEST--
Cache_Lite::Cache_Lite (PEAR bug #18328)
--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)