Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-7.3
/
share
/
test
/
Cache_Lite
/
tests
/
//opt/php-7.3/share/test/Cache_Lite/tests/Cache_Lite_error.phpt
--TEST-- Cache_Lite::Cache_Lite (error) --INI-- track_errors=Off --FILE-- <?php require_once __DIR__ . '/bootstrap.php'; require_once __DIR__ . '/callcache.inc'; require_once __DIR__ . '/tmpdir.inc'; require_once __DIR__ . '/cache_lite_base.inc'; $options = array( 'cacheDir' => tmpDir() . '31451992gjhgjh'. '/', # I hope there will be no directory with that silly name 'lifeTime' => 60 ); $Cache_Lite = new Cache_Lite($options); multipleCallCache(); ?> --GET-- --POST-- --EXPECT-- ==> First call (cache should be missed) Cache Missed ! 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 Error when saving cache ! Done ! ==> Second call (cache should be hit) Cache Missed ! 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 Error when saving cache ! Done ! ==> Third call (cache should be hit) Cache Missed ! 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 Error when saving cache ! Done ! ==> We remove cache Done ! ==> Fourth call (cache should be missed) Cache Missed ! 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 Error when saving cache ! Done ! ==> #5 Call with another id (cache should be missed) Cache Missed ! 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 Error when saving cache ! Done ! ==> We remove cache Done !