php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58638 file still accessible, after move
Submitted: 2009-04-21 09:22 UTC Modified: 2009-07-16 21:35 UTC
From: kapcsolat at edgarpe dot hu Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.1.6 OS: CentOS 4.4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-04-21 09:22 UTC] kapcsolat at edgarpe dot hu
Description:
------------
Moving a file into other directory but with same name and same contents the file runs as if it was in its old place.

apc.stat is ON  !


Reproduce code:
---------------
dir/a.php:
-------------
$foo = 'bar';
-------------

dir/b.php:
-------------
require_once('a.php');
print $foo; // output: bar
-------------

now move dir/b.php to otherdir/b.php

requesting otherdir/b.php still outputs "bar"

After changing the contents of b.php in any way, the problem is solved.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-21 14:15 UTC] shire@php.net
does setting the INI apc.stat_ctime=1 fix this?
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 15:03:14 2021 UTC