ID: 43137 User updated by: [EMAIL PROTECTED] -Summary: rmdri() does not clear statcache Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Directory function related Operating System: Linux 2.6.21 PHP Version: 5.2.5RC1 New Comment:
Fixed bug title. Previous Comments: ------------------------------------------------------------------------ [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