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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kapcsolat at edgarpe dot hu
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 17:01:28 2025 UTC