|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-08-07 17:58 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
Description: ------------ If some cache are stored after calling sleep(), its creation_time is time, when php script was executed without adding slept time. Reproduce code: --------------- <?php print time() . "\n"; apc_clear_cache('user'); apc_store('CompanyName_31', 'Google Inc.', 86400); sleep(5); apc_store('Location_27', '1600 Amphitheatre Parkway', 84600); print time() . "\n"; var_dump(apc_cache_info('user')); Expected result: ---------------- // imagine, time() returns value: 1281216994 1281216994 // var_dump shows, that "CompanyName_31" creation_time is: 1281216994 // var_dump shows, that "Location_27" creation_time is: 1281216999 1281216999 Actual result: -------------- // imagine, time() returns value: 1281216994 1281216994 // var_dump shows, that "CompanyName_31" creation_time is: 1281216994 // var_dump shows, that "Location_27" creation_time is: 1281216994 1281216999