php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58818 apc_store doesn't replace existing value
Submitted: 2009-08-20 02:55 UTC Modified: 2010-11-03 19:07 UTC
From: jasonwyz98 at gmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.3.2 OS: Ubuntu v10.04
Private report: No CVE-ID: None
 [2009-08-20 02:55 UTC] jasonwyz98 at gmail dot com
Description:
------------
Hi

There seems to be an issue with apc_store function. It doesn't replace existing values.

According to the documentation the apc_store function is supposed to replace existing value when the same key is used more than once.

Thanks

Reproduce code:
---------------
apc_store( 'key', 'item1' );
apc_store( 'key', 'item2' );
echo apc_fetch( 'key' );


Expected result:
----------------
Expected: item2

Actual result:
--------------
Actual: item1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-25 17:44 UTC] gopalv82 at yahoo dot com
Check the error log?
 [2009-09-01 09:03 UTC] jason at xlntads dot com
sounds like this issue http://pecl.php.net/bugs/bug.php?id=16814
 [2009-09-22 06:54 UTC] kalle@php.net
Can you try the latest SVN trunk of APC and see if this issue is resolved?
 [2009-10-29 21:12 UTC] linzhoulxyz at gmail dot com
i have the same bug, my apc is 3.1.3p1 and php is 5.3
 [2009-12-13 00:01 UTC] shire@php.net
linzhoulxyz: can you confirm this is a duplicate of the bug mentioned above? #16814
 [2010-01-05 10:52 UTC] yaashul at gmail dot com
I have the same bug... I'm using php 5.3.1 with apc 3.1.3p1.
 [2010-05-26 15:22 UTC] info at theindustry dot se
I also have the same problem! Any resolution yet?
 [2010-06-05 03:02 UTC] jasonwyz98 at gmail dot com
Try to use the latest trunk version, I'm using it without any 
problems.

Jason
 [2010-11-03 19:07 UTC] pierre dot php at gmail dot com
Reported as being fixed in trunk (which is now 3.1.5)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 18:01:34 2024 UTC