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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 03:01:32 2024 UTC