php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72378 apcu_fetch returns stale data
Submitted: 2016-06-10 13:38 UTC Modified: 2016-07-09 11:58 UTC
From: martijn dot otto at copernica dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 7.0.7 OS: ubuntu 16.04
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: martijn dot otto at copernica dot com
New email:
PHP Version: OS:

 

 [2016-06-10 13:38 UTC] martijn dot otto at copernica dot com
Description:
------------
apcu_fetch returns data that should have been expired.

Test script:
---------------
apcu_store('test', 1, 1);
sleep(2);
assert(apcu_fetch('test') === false);

Expected result:
----------------
The assert passes

Actual result:
--------------
The assert fails.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-09 11:58 UTC] krakjoe@php.net
-Status: Open +Status: Not a bug
 [2016-07-09 11:58 UTC] krakjoe@php.net
By default, APC(u) will use the SAPI request time for these calculations, this can be configured as documented (use_request_time).

This is not a bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 17:01:29 2024 UTC