• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ICanBoogie / Storage / 11646577464

02 Nov 2024 11:22PM UTC coverage: 82.778%. First build
11646577464

push

github

olvlvl
Test against PHP 8.4.0RC3

147 of 178 new or added lines in 13 files covered. (82.58%)

149 of 180 relevant lines covered (82.78%)

6.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/polyfills.php
1
<?php
2

3
if (!function_exists('apcu_store')) {
4
    function apcu_store($key, $var, $ttl = 0)
5
    {
6
        return apc_store($key, $var, $ttl);
7
    }
8
}
9

10
if (!function_exists('apcu_exists')) {
11
    function apcu_exists($keys)
12
    {
13
        return apc_exists($keys);
14
    }
15
}
16

17
if (!function_exists('apcu_fetch')) {
18
    function apcu_fetch($key, &$success = null)
19
    {
20
        return apc_fetch($key, $success);
21
    }
22
}
23

24
if (!function_exists('apcu_delete')) {
25
    function apcu_delete($key)
26
    {
27
        if ($key instanceof APCUIterator) {
28
            $key = array_keys(iterator_to_array($key));
29
        }
30

31
        if (is_array($key)) {
32
            $failure = false;
33

34
            foreach ($key as $k) {
35
                if (apc_delete($k) === false) {
36
                    $failure = true;
37
                }
38
            }
39

40
            return !$failure;
41
        }
42

43
        return apc_delete($key);
44
    }
45
}
46

47
if (!class_exists(APCUIterator::class, false) && class_exists(APCIterator::class, false)) {
48
    class APCUIterator extends APCIterator
49
    {
50
        public function __construct($search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE)
51
        {
NEW
52
            parent::__construct('user', $search, $format, $chunk_size, $list);
×
53
        }
54
    }
55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc