ID:               43137
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Assigned
+Status:           Closed
 Bug Type:         Directory function related
 Operating System: Linux 2.6.21
 PHP Version:      5.2.5RC1
 Assigned To:      jani
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2007-10-31 12:40:51] [EMAIL PROTECTED]

Fix under way..

------------------------------------------------------------------------

[2007-10-30 10:04:58] [EMAIL PROTECTED]

Fixed bug title.

------------------------------------------------------------------------

[2007-10-30 10:04:04] [EMAIL PROTECTED]

Description:
------------
rmdir() does not clear the statcache like unlink() does.

Reproduce code:
---------------
#!/usr/bin/env php
<?php

mkdir( $dirname = md5( microtime() ) );
var_dump( is_dir( $dirname ) );
rmdir( $dirname );
var_dump( is_dir( $dirname ) );
clearstatcache();
var_dump( is_dir( $dirname ) );

?>

Expected result:
----------------
bool(true)
bool(false)
bool(false)


Actual result:
--------------
bool(true)
bool(true)
bool(false)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43137&edit=1

Reply via email to