1515 return ;
1616}
1717
18- if (\PHP_VERSION_ID >= 80000 ) {
19- return require __DIR__ .'/bootstrap80.php ' ;
20- }
21-
2218if (extension_loaded ('Zend Data Cache ' )) {
2319 if (!function_exists ('apcu_add ' )) {
24- function apcu_add ($ key , $ value = null , $ ttl = 0 ) { return p \Apcu::apcu_add ($ key , $ value , $ ttl ); }
20+ function apcu_add ($ key , mixed $ value, ? int $ ttl = 0 ): array | bool { return p \Apcu::apcu_add ($ key , $ value , ( int ) $ ttl ); }
2521 }
2622 if (!function_exists ('apcu_delete ' )) {
27- function apcu_delete ($ key ) { return p \Apcu::apcu_delete ($ key ); }
23+ function apcu_delete ($ key ): array | bool { return p \Apcu::apcu_delete ($ key ); }
2824 }
2925 if (!function_exists ('apcu_exists ' )) {
30- function apcu_exists ($ key ) { return p \Apcu::apcu_exists ($ key ); }
26+ function apcu_exists ($ key ): array | bool { return p \Apcu::apcu_exists ($ key ); }
3127 }
3228 if (!function_exists ('apcu_fetch ' )) {
3329 function apcu_fetch ($ key , &$ success = null ) { return p \Apcu::apcu_fetch ($ key , $ success ); }
3430 }
3531 if (!function_exists ('apcu_store ' )) {
36- function apcu_store ($ key , $ value = null , $ ttl = 0 ) { return p \Apcu::apcu_store ($ key , $ value , $ ttl ); }
32+ function apcu_store ($ key , mixed $ value, ? int $ ttl = 0 ): array | bool { return p \Apcu::apcu_store ($ key , $ value , ( int ) $ ttl ); }
3733 }
3834} else {
3935 if (!function_exists ('apcu_add ' )) {
40- function apcu_add ($ key , $ value = null , $ ttl = 0 ) { return apc_add ($ key , $ value , $ ttl ); }
36+ function apcu_add ($ key , mixed $ value, ? int $ ttl = 0 ): array | bool { return apc_add ($ key , $ value , ( int ) $ ttl ); }
4137 }
4238 if (!function_exists ('apcu_delete ' )) {
43- function apcu_delete ($ key ) { return apc_delete ($ key ); }
39+ function apcu_delete ($ key ): array | bool { return apc_delete ($ key ); }
4440 }
4541 if (!function_exists ('apcu_exists ' )) {
46- function apcu_exists ($ key ) { return apc_exists ($ key ); }
42+ function apcu_exists ($ key ): array | bool { return apc_exists ($ key ); }
4743 }
4844 if (!function_exists ('apcu_fetch ' )) {
4945 function apcu_fetch ($ key , &$ success = null ) { return apc_fetch ($ key , $ success ); }
5046 }
5147 if (!function_exists ('apcu_store ' )) {
52- function apcu_store ($ key , $ value = null , $ ttl = 0 ) { return apc_store ($ key , $ value , $ ttl ); }
48+ function apcu_store ($ key , mixed $ value, ? int $ ttl = 0 ): array | bool { return apc_store ($ key , $ value , ( int ) $ ttl ); }
5349 }
5450}
5551
@@ -75,7 +71,7 @@ function apcu_sma_info($limited = false) { return apc_sma_info($limited); }
7571if (!class_exists ('APCuIterator ' , false ) && class_exists ('APCIterator ' , false )) {
7672 class APCuIterator extends APCIterator
7773 {
78- public function __construct ($ search = null , $ format = \ APC_ITER_ALL , $ chunk_size = 100 , $ list = \ APC_LIST_ACTIVE )
74+ public function __construct ($ search = null , $ format = APC_ITER_ALL , $ chunk_size = 100 , $ list = APC_LIST_ACTIVE )
7975 {
8076 parent ::__construct ('user ' , $ search , $ format , $ chunk_size , $ list );
8177 }
0 commit comments