#43137 [Opn]: rmdir() does not clear statcache

From: Date: Tue, 30 Oct 2007 10:04:59 +0000
Subject: #43137 [Opn]: rmdir() does not clear statcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119062@lists.php.net to get a copy of this message
ID: 43137 User updated by: kore@php.net -Summary: rmdri() does not clear statcache Reported By: kore@php.net 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] kore@php.net 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

« previous php.bugs (#119062) next »