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: 2016-11-18 21:04 UTC
From: brian at towles dot com Assigned:
Status: Open Package: APC (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC