|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59236 cached file keeps old folder reference after renaming folder
Submitted: 2010-05-27 08:36 UTC Modified: 2016-11-18 21:53 UTC
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: rene dot ayr1 at gmail dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: 5.2.13 OS: Red Hat 5.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: rene dot ayr1 at gmail dot com
New email:
PHP Version: OS:


 [2010-05-27 08:36 UTC] rene dot ayr1 at gmail dot com
cached file keeps old folder reference after renaming folder

with APC enable visiting a url
renaming the folder1 to folder2
and visiting

will result in the includes to reference folder1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-28 08:55 UTC] gopalv82 at yahoo dot com
Are you using apc.stat=0?

If you are and you want to rename directories, use apc.canonicalize=Off;
 [2010-05-28 09:15 UTC] rene dot ayr1 at gmail dot com
apc.stat=1 is set, I've included the rest of my config

; Enable apc extension module
extension =
; Options for the apc module
;apc.num_files_hint= 4500000
 [2010-08-20 09:19 UTC] bb_plus at hotmail dot com
I am having a problem that seems due to the same fundamental flaw.  Three Wordpress websites with the same Wordpress version installed and therefore identical file names, dates and time stamps display with web page content mixed between the sites.  For example, the home page content of the first of those sites visited after an Apache restart is also displayed at the other two websites.

Server: Windows 2000 Advanced Server (Windows NT 5.0 build 2195)

Apache: httpd-2.2.16-win32-x86-no_ssl

PHP 5.2.14-win32

APC 3.1.4

php.ini file configuration:

 [2010-08-21 10:32 UTC] bb_plus at hotmail dot com
I hadn't noticed in the on-line manual that with the default setting apc.canonicalize=on relative paths are canonicalized in no-stat mode, which was causing the problem described above. It is so common to have identical files with different paths in shared hosting environments it seems it would be better to have the default setting be apc.canonicalize=off and then to instruct those with simple hosting situations who can benefit from the speed improvement provided by not checking file paths set it on, just as is the case for apc.stat relative to file modifications.
 [2016-11-18 21:53 UTC]
-Status: Open +Status: Wont fix
 [2016-11-18 21:53 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: Mon Jul 15 23:01:30 2024 UTC