Bug #72378 [Opn->Nab]: apcu_fetch returns stale data

From: Date: Sat, 09 Jul 2016 11:58:58 +0000
Subject: Bug #72378 [Opn->Nab]: apcu_fetch returns stale data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202144@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72378&edit=1

 ID:                 72378
 Updated by:         krakjoe@php.net
 Reported by:        martijn dot otto at copernica dot com
 Summary:            apcu_fetch returns stale data
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            *General Issues
 Operating System:   ubuntu 16.04
 PHP Version:        7.0.7
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2016-06-10 13:38:38] 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.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=72378&edit=1


Thread (2 messages)

« previous php.bugs (#202144) next »