Bug #54987 [NEW]: rmdir() does not clear statcache
From:
Operating system: Windows 7 Pro 32-bit
PHP version: 5.3.6
Package: Directory function related
Bug Type: Bug
Bug description:rmdir() does not clear statcache
Description:
------------
See bug 43137. The same bug applies to Windows.
Given a directory structure "C:\Test\Test2" with no files in either
directory,
rmdir("C:\Test\Test2") succeeds
but subsequent
rmdir("C:\Test") fails with "directory not empty", even though it is
empty.
Running clearstatcache() prior to rmdir("C:\Test") works around the
problem.
Test script:
---------------
if (file_exists("C:\Test\Test2")) rmdir("C:\Test\Test2");
rmdir("C:\Test")
Expected result:
----------------
c:\Test\Test2 is deleted
C:\Test is deleted
No warnings
Actual result:
--------------
C:\Test\Test2 is deleted
C:\Test is NOT deleted
Receive warning that C:\Test is not empty
--
Edit bug report at http://bugs.php.net/bug.php?id=54987&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54987&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54987&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54987&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54987&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54987&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54987&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54987&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54987&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54987&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54987&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54987&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54987&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54987&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54987&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54987&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54987&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54987&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54987&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54987&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54987&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54987&r=mysqlcfg
Thread (2 messages)
- davey at marshallx dot fsnet dot co dot uk