krakjoe / apcu

APCu - APC User Cache
Other
959 stars 194 forks source link

apc_cache_info()['cache_list'] ouput is incompatible with APC #50

Closed theintz closed 10 years ago

theintz commented 10 years ago

The output of the apc_cache_info() function differs slightly from that of the original function. We are using the cache_list subarray to gather information about the cache behavior, which is currently broken.

APCu:

php > $t = apc_cache_info('user');
php > print_r($t);
Array
(
    [cache_list] => Array
        (
            [0] => Array
                (
                    [key] => abc
                    [ttl] => 0
                    [nhits] => 0
                    [mtime] => 1382608917
                    [ctime] => 1382608917
                    [dtime] => 0
                    [atime] => 1382608917
                    [ref_count] => 0
                    [mem_size] => 656
                )
        )
)

APC:

php > $t_apc = apc_cache_info('user');
php > print_r($t_apc);
Array
(
    [cache_list] => Array
        (
            [0] => Array
                (
                    [info] => abc
                    [ttl] => 0
                    [type] => user
                    [num_hits] => 0
                    [mtime] => 1382608983
                    [creation_time] => 1382608983
                    [deletion_time] => 0
                    [access_time] => 1382608983
                    [ref_count] => 0
                    [mem_size] => 656
                )
        )
)
theintz commented 10 years ago

Sorry, just now saw https://github.com/krakjoe/apcu/pull/42. Has this already been fixed in that commit? Can we expect a new release soon?

krakjoe commented 10 years ago

Yes, it was fixed.

Yes soon ...