#43137 [Asn->Csd]: rmdir() and rename() do not clear statcache

From: Date: Wed, 31 Oct 2007 13:23:22 +0000
Subject: #43137 [Asn->Csd]: rmdir() and rename() do not clear statcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119146@lists.php.net to get a copy of this message
ID: 43137 Updated by: jani@php.net Reported By: kore@php.net -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] jani@php.net Fix under way.. ------------------------------------------------------------------------ [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 (#119146) next »