One Hat Cyber Team
Your IP :
162.159.115.33
Server IP :
188.114.96.3
Server :
Linux thuru 6.5.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-4 (2023-11-20T10:19Z) x86_64
Server Software :
Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips
PHP Version :
7.3.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
apcu-5.1.12
/
tests
/
View File Name :
apc_020.phpt
--TEST-- Test default expunge logic wrt global and per-entry TTLs --SKIPIF-- <?php require_once(__DIR__ . '/skipif.inc'); if (!function_exists('apcu_inc_request_time')) die('skip APC debug build required'); ?> --INI-- apc.enabled=1 apc.enable_cli=1 apc.use_request_time=1 apc.ttl=1 apc.shm_size=1M --FILE-- <?php apcu_store("no_ttl_unaccessed", 12); apcu_store("no_ttl_accessed", 24); apcu_store("ttl", 42, 3); apcu_store("dummy", "xxx"); apcu_inc_request_time(1); apcu_fetch("no_ttl_accessed"); apcu_inc_request_time(1); // Fill the cache $i = 0; while (apcu_exists("dummy")) { apcu_store("key" . $i, "foobar"); $i++; } var_dump(apcu_fetch("no_ttl_unaccessed")); var_dump(apcu_fetch("no_ttl_accessed")); var_dump(apcu_fetch("ttl")); ?> --EXPECT-- bool(false) int(24) int(42)