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

From: Date: Wed, 31 Oct 2007 12:40:51 +0000
Subject: #43137 [Opn->Asn]: rmdir() does not clear statcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119141@lists.php.net to get a copy of this message
ID: 43137 Updated by: jani@php.net Reported By: kore@php.net -Status: Open +Status: Assigned Bug Type: Directory function related Operating System: Linux 2.6.21 PHP Version: 5.2.5RC1 -Assigned To: +Assigned To: jani New Comment: Fix under way.. Previous Comments: ------------------------------------------------------------------------ [2007-10-30 10:04:58] kore@php.net Fixed bug title. ------------------------------------------------------------------------ [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 (#119141) next »