|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30368 is_dir() return true after rmdir()
Submitted: 2004-10-08 18:20 UTC Modified: 2004-10-08 18:42 UTC
From: andre dot steffens at adress-research dot de Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 4.3.9 OS: Win2k
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: andre dot steffens at adress-research dot de
New email:
PHP Version: OS:


 [2004-10-08 18:20 UTC] andre dot steffens at adress-research dot de
is_dir() seems to cache the last status for a given dir and don't check if it still exists.

Reproduce code:

$err = is_dir('dir');


Expected result:
$err = false;

Actual result:
$err = true;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-08 18:30 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Expected behaviour, read about clearstatcache();
 [2004-10-08 18:42 UTC] andre dot steffens at adress-research dot de
I think that after some file/dir functions the stat cache should be clean automatically.

like: rmdir(); unlink(); ... all functions that alter files or dirs ...
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Aug 19 23:05:44 2022 UTC