This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
polyfill.php
78 lines (67 loc) · 1.88 KB
/
polyfill.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
if (function_exists('apcu_add') && !function_exists('apc_add')) {
function apc_add($key, $var, $ttl = 0)
{
return apcu_add($key, $var, $ttl);
}
}
if (function_exists('apcu_cache_info') && !function_exists('apc_cache_info')) {
function apc_cache_info($cache_type = "", $limited = false)
{
return apcu_cache_info($cache_type, $limited);
}
}
if (function_exists('apcu_cas') && !function_exists('apc_cas')) {
function apc_cas($key, $old, $new)
{
return apcu_cas($key, $old, $new);
}
}
if (function_exists('apcu_clear_cache') && !function_exists('apc_clear_cache')) {
function apc_clear_cache($cache_type = "")
{
return apcu_clear_cache();
}
}
if (function_exists('apcu_dec') && !function_exists('apc_dec')) {
function apc_dec($key, $step = 1, &$success = null)
{
return apcu_dec($key, $step, $success);
}
}
if (function_exists('apcu_delete') && !function_exists('apc_delete')) {
function apc_delete($key)
{
return apcu_delete($key);
}
}
if (function_exists('apcu_exists') && !function_exists('apc_exists')) {
function apc_exists($keys)
{
return apcu_exists($keys);
}
}
if (function_exists('apcu_fetch') && !function_exists('apc_fetch')) {
function apc_fetch($key, &$success = null)
{
return apcu_fetch($key, $success);
}
}
if (function_exists('apcu_inc') && !function_exists('apc_inc')) {
function apc_inc($key, $step = 1, &$success = null)
{
return apcu_inc($key, $step, $success);
}
}
if (function_exists('apcu_sma_info') && !function_exists('apc_sma_info')) {
function apc_sma_info($limited = false)
{
return apcu_sma_info($limited);
}
}
if (function_exists('apcu_store') && !function_exists('apc_store')) {
function apc_store($key, $var, $ttl = 0)
{
return apcu_store($key, $var, $ttl);
}
}