php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59580 apc_store with ttl does not work
Submitted: 2011-01-15 00:53 UTC Modified: 2011-01-15 16:41 UTC
From: is at 3p dot gd Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.3.2 OS: CentOS 5.4 64bit
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: is at 3p dot gd
New email:
PHP Version: OS:

 

 [2011-01-15 00:53 UTC] is at 3p dot gd
Description:
------------
Same as http://pecl.php.net/bugs/bug.php?id=13331

I know this is a kind of "optimization", but I don't want this 
"optimization". How do I get rip of it?

Reproduce code:
---------------
<?php

apc_store('test', 'asdf', $ttl = 1);

echo var_export(apc_fetch('test'), true) . "\n";

sleep(2);

echo var_export(apc_fetch('test'), true) . "\n";

Expected result:
----------------
'asdf'
false

Actual result:
--------------
'asdf'
'asdf'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-15 16:41 UTC] gopalv@php.net
apc.use_request_time=0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 21:01:32 2024 UTC