|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66819 apc_delete_file depends on file_update_protection
Submitted: 2014-03-04 11:15 UTC Modified: 2016-11-18 21:03 UTC
From: opitz at pluspol dot info Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-03-04 11:15 UTC] opitz at pluspol dot info
If the configuration apc.file_update_protection is set (default 2 seconds) you can't use the function apc_delete_file after you updated a file.

The problem is, that the internal function apc_cache_make_file_key checks for configuration apc.file_update_protection. So the functionality of this internal function depends on an unnecessary configuration option.

Expected result:
Delete cache entry for file, which was generated shortly before.

Actual result:
Cache not cleared and a warning ommited: "PHP Warning: apc_delete_file(): Could not stat file ..." which is false.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 21:03 UTC]
-Status: Open +Status: Wont fix
 [2016-11-18 21:03 UTC]
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC