|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-08-06 15:07 UTC] fruit dot dev at gmail dot com
Description:
------------
When I call apc_delete() to remove cache, next stored cache is always "false", but second, third etc. is OK
Reproduce code:
---------------
<?php
apc_clear_cache('user');
apc_store('lock_CCCC', 1, 2);
apc_store('CCCC', 129021, 3001);
apc_delete('lock_CCCC');
apc_store('tag_A', '100', 86400);
apc_store('tag_B', '200', 86400);
var_dump(apc_fetch('tag_A')); // prints "boolean false"
var_dump(apc_fetch('tag_B')); // prints "string '200' (length=3)"
?>
Expected result:
----------------
I expected to get in output 2 string:
First: "string '100' (length=3)"
Second: "string '200' (length=3)"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 14:00:01 2025 UTC |
Almighty $deity. This one is a nasty bug. 648 while (*slot) { (gdb) p *slot $2 = (slot_t *) 0xb44e925c (gdb) p **slot $3 = {key = {data = {file = {device = 24499884700, inode = 3067182425}, user = {identifier = 0xb44e929c "tag_ACCCC", identifier_len = 5}, fpfile = {fullpath = 0xb44e929c "tag_ACCCC", fullpath_len = 5}}, So basically, the tag_A is written, without the ending NUL.