{"action":"created","issue":{"url":"https://api.github.com/repos/krakjoe/apcu/issues/41","labels_url":"https://api.github.com/repos/krakjoe/apcu/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/krakjoe/apcu/issues/41/comments","events_url":"https://api.github.com/repos/krakjoe/apcu/issues/41/events","html_url":"https://github.com/krakjoe/apcu/issues/41","id":19589994,"number":41,"title":"apc_cache_info('user') compatibility issue","user":{"login":"AVK93","id":5474210,"avatar_url":"https://avatars.githubusercontent.com/u/5474210?v=3","gravatar_id":"","url":"https://api.github.com/users/AVK93","html_url":"https://github.com/AVK93","followers_url":"https://api.github.com/users/AVK93/followers","following_url":"https://api.github.com/users/AVK93/following{/other_user}","gists_url":"https://api.github.com/users/AVK93/gists{/gist_id}","starred_url":"https://api.github.com/users/AVK93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AVK93/subscriptions","organizations_url":"https://api.github.com/users/AVK93/orgs","repos_url":"https://api.github.com/users/AVK93/repos","events_url":"https://api.github.com/users/AVK93/events{/privacy}","received_events_url":"https://api.github.com/users/AVK93/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-09-17T01:07:57Z","updated_at":"2015-01-26T23:17:48Z","closed_at":"2013-10-20T06:15:21Z","body":"When calling `apc_cache_info('user')`, the array keys seems to differ from apc's ones. \r\nWith apcu I got: \r\n```\r\n[nslots] => 4099\r\n    [ttl] => 0\r\n    [nhits] => 24\r\n    [nmisses] => 42\r\n    [ninserts] => 52\r\n    [nentries] => 28\r\n    [nexpunges] => 0\r\n    [stime] => 1379344890\r\n    [mem_size] => 58000\r\n    [file_upload_progress] => 1\r\n    [memory_type] => IPC shared\r\n    [cache_list] => Array\r\n        (\r\n            [0] => Array\r\n                (\r\n                    [key] => Myapp__cake_core_cake_deu\r\n                    [ttl] => 86313600\r\n                    [nhits] => 0\r\n                    [mtime] => 1379378443\r\n                    [ctime] => 1379378443\r\n                    [dtime] => 0\r\n                    [atime] => 1379378443\r\n                    [ref_count] => 0\r\n                    [mem_size] => 584\r\n                )\r\n...\r\n```\r\n\r\nAs far as I know, APC uses `num_entries` instead of `nentries` and `start_time` instead of `stime`. Also in the cache list entries, APC uses `info` instead of `key`. I think there are also more of these keys, but I currently have no apc installation to check them out. \r\n\r\nIs it possible to get apcu's apc_cache_info() full compatible with apc's one?"},"comment":{"url":"https://api.github.com/repos/krakjoe/apcu/issues/comments/71559367","html_url":"https://github.com/krakjoe/apcu/issues/41#issuecomment-71559367","issue_url":"https://api.github.com/repos/krakjoe/apcu/issues/41","id":71559367,"user":{"login":"ptdev","id":1280528,"avatar_url":"https://avatars.githubusercontent.com/u/1280528?v=3","gravatar_id":"","url":"https://api.github.com/users/ptdev","html_url":"https://github.com/ptdev","followers_url":"https://api.github.com/users/ptdev/followers","following_url":"https://api.github.com/users/ptdev/following{/other_user}","gists_url":"https://api.github.com/users/ptdev/gists{/gist_id}","starred_url":"https://api.github.com/users/ptdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptdev/subscriptions","organizations_url":"https://api.github.com/users/ptdev/orgs","repos_url":"https://api.github.com/users/ptdev/repos","events_url":"https://api.github.com/users/ptdev/events{/privacy}","received_events_url":"https://api.github.com/users/ptdev/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T23:17:48Z","updated_at":"2015-01-26T23:17:48Z","body":"Until there's a new official release with these key inconsistencies resolved so most package managers eventually pick it up, the goal of providing a drop-in replacement for apc on 5.5+ is a failed goal.\r\nThis breaks things on *a lot* of apps that have apc caching integration and is forcing developers to release fixes with aditional code to distinguish apc from apcu which imho defeats the whole purpose of it.\r\nThat said, I do agree that if keys were poorly named on the original apc in the first place, then apcu should continue to improve on that, but still maintain backwards compatibility with the old keys for a while. Maybe eventually start throwing some e_deprecated errors and eventually phase out the old keys.\r\nBut at this time, when there are still a lot of people migrating from 5.3 and 5.4 I think the returned arrays should be able to be accessed in exactly the same way as the original apc."}}