|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-02 02:47 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
Description: ------------ Unfortunately there is a serious problem with apc_fetch/store on systems with multiple cpus or dual/quad core systems. Reproduce: <?php $bar = 'BAR'; apc_store('foo', $bar); var_dump(apc_fetch('foo')); ?> is good, but after this you just run: <?php var_dump(apc_fetch('foo')); ?> several times, and you can get FALSE instead of the value even if you set ttl of 1000+ There is a forum post about this at http://litespeedtech.com/support/forum/showthread.php?t=1566 Reproduce code: --------------- <?php $bar = 'BAR'; apc_store('foo', $bar); var_dump(apc_fetch('foo')); ?> <?php var_dump(apc_fetch('foo')); ?> Expected result: ---------------- 'BAR' Actual result: -------------- FALSE