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: 2018-07-21 08:25 UTC
From: david at sickmiller dot com Assigned: nikic (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 - 41 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC