From: Alexander Ebert Date: Sat, 27 Jul 2013 19:34:51 +0000 (+0200) Subject: Fixed issues with broken stat cache X-Git-Tag: 2.0.0_Beta_6~31^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=adbd805442dc92ed9ca7c4196dbdaf9f60aef0f9;p=GitHub%2FWoltLab%2FWCF.git Fixed issues with broken stat cache --- diff --git a/wcfsetup/install.php b/wcfsetup/install.php index 13a34bc15a..abc233dfca 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -312,6 +312,8 @@ class BasicFileUtil { self::$mode = 0777; } else { + clearstatcache(); + self::$mode = 0666; $tmpFilename = '__permissions_'.sha1(time()).'.txt'; diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index d070d2fa36..0f8e2e9e0a 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -511,6 +511,8 @@ final class FileUtil { self::$mode = '0777'; } else { + clearstatcache(); + self::$mode = '0666'; $tmpFilename = '__permissions_'.sha1(time()).'.txt';