Bug #72378 [NEW]: apcu_fetch returns stale data

From: Date: Fri, 10 Jun 2016 13:38:40 +0000
Subject: Bug #72378 [NEW]: apcu_fetch returns stale data
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201524@lists.php.net to get a copy of this message
From:             martijn dot otto at copernica dot com
Operating system: ubuntu 16.04
PHP version:      7.0.7
Package:          *General Issues
Bug Type:         Bug
Bug description:apcu_fetch returns stale data

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 bug report at https://bugs.php.net/bug.php?id=72378&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72378&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72378&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72378&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72378&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72378&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72378&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72378&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72378&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72378&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72378&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72378&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72378&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72378&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72378&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72378&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72378&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72378&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72378&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72378&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72378&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#201524) next »