php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75046 APCu: Iterator results should include cache entries deemed stale due to apc.ttl
Submitted: 2017-08-08 03:56 UTC Modified: 2017-10-24 08:50 UTC
From: david at sickmiller dot com Assigned:
Status: Open Package: APC (PECL)
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at sickmiller dot com
New email:
PHP Version: OS:

 

 [2017-08-08 03:56 UTC] david at sickmiller dot com
Description:
------------
Depending on the apc.ttl setting, apc_fetch() "sees" data that APCIterator doesn't. This seems incorrect to me. I believe apc_fetch() is working correctly; APCIterator should work the same.

Also, APCIterator should not count cache entries excluded due to the entry's ttl.

I have submitted patches and tests here: https://github.com/krakjoe/apcu/pull/253


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 08:50 UTC] kalle@php.net
-Summary: APCIterator results should include cache entries deemed stale due to apc.ttl +Summary: APCu: Iterator results should include cache entries deemed stale due to apc.ttl
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC