From: andre dot steffens at adress-research dot de
Operating system: Win2k
PHP version: 4.3.9
PHP Bug Type: Directory function related
Bug description: is_dir() return true after rmdir()
Description:
------------
is_dir() seems to cache the last status for a given dir and don't check if
it still exists.
Reproduce code:
---------------
<?php
mkdir('dir');
is_dir('dir');
rmdir('dir');
$err = is_dir('dir');
?>
Expected result:
----------------
$err = false;
Actual result:
--------------
$err = true;
--
Edit bug report at http://bugs.php.net/?id=30368&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30368&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30368&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30368&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30368&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30368&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30368&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30368&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30368&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30368&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30368&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30368&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30368&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30368&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30368&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30368&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30368&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30368&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30368&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30368&r=mysqlcfg