Bug #54987 [Opn->Csd]: rmdir() does not clear statcache

From: Date: Sun, 14 Jun 2015 22:20:53 +0000
Subject: Bug #54987 [Opn->Csd]: rmdir() does not clear statcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193490@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54987&edit=1

 ID:                 54987
 Updated by:         cmb@php.net
 Reported by:        davey at marshallx dot fsnet dot co dot uk
 Summary:            rmdir() does not clear statcache
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Directory function related
 Operating System:   Windows 7 Pro 32-bit
 PHP Version:        5.3.6
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for your bug report. This bug has been fixed in the
meantime (at least as of PHP 5.4.4).


Previous Comments:
------------------------------------------------------------------------
[2011-06-03 17:29:38] davey at marshallx dot fsnet dot co dot uk

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 this bug report at https://bugs.php.net/bug.php?id=54987&edit=1


Thread (2 messages)

« previous php.bugs (#193490) next »