Bug #910: Stat Cache not appropriate after unlink operation

From: Date: Wed, 11 Nov 1998 00:03:40 +0000
Subject: Bug #910: Stat Cache not appropriate after unlink operation
Groups: php.dev 
Request: Send a blank email to php-dev+get-2316@lists.php.net to get a copy of this message
From: medwards@iname.com Operating system: Linux 2.0.34 (RH) PHP version: 3.0.5 PHP Bug Type: Misbehaving function Bug description: Stat Cache not appropriate after unlink operation --- link.c.old Mon Oct 5 01:22:17 1998 +++ link.c Tue Nov 10 23:53:58 1998 @@ -175,6 +175,7 @@ php3_error(E_WARNING, "Unlink failed (%s)", strerror(errno)); RETURN_FALSE; } + php3_clearstatcache(INTERNAL_FUNCTION_PARAM_PASSTHRU); RETURN_TRUE; } might be a possible fix for this one... If I do an unlink operation on a file that I have been statting (i.e. file_exists()) and I stat right after I have unlinked it, the file seems to still exist after I have unlinked it, because the cache is still active. This is a work-around, and no doubt you guys have a far more elegant solution in mind.... -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2316) next »