php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66536 APCu: Backwards incompatibility in structure returned from apc_cache_info
Submitted: 2014-01-21 18:04 UTC Modified: 2018-10-09 20:13 UTC
From: brian at towles dot com Assigned: nikic (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2014-01-21 18:04 UTC] brian at towles dot com
Description:
------------
Howdy,

In APCu (at least in 4.0.2) apc_cache_info and APCIterator are returning an array structure that in not backwards compatible with the original apc functions.  This is on the "user" space apc_cache_info call from the old APC implementation.

The original APC call would return a cache_list entry that had the entry label defined as "info".  APCu changed it to "key".   While I agree with the naming choice, It does break the older APC usage implementations that use apc_cache_info for the the user side cache list.

I found this in Joomla but im sure that there are other php projects that use apc_cache_info in order to find and possibly purge individual user cache entires.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 21:05 UTC] kalle@php.net
-Summary: Backwards incompatibility in structure returned from apc_cache_info +Summary: APCu: Backwards incompatibility in structure returned from apc_cache_info
 [2018-10-09 20:13 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2018-10-09 20:13 UTC] nikic@php.net
Apparently this has been fixed a long time ago with https://github.com/krakjoe/apcu/commit/66e5883074348b69957aaf82564fc8136fd3561a (lowest version including this commit is 4.0.7), so I'm going to close this issue.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Dec 10 08:01:24 2018 UTC