Fixed issues with broken stat cache
authorAlexander Ebert <ebert@woltlab.com>
Sat, 27 Jul 2013 19:34:51 +0000 (21:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 27 Jul 2013 19:34:51 +0000 (21:34 +0200)
wcfsetup/install.php
wcfsetup/install/files/lib/util/FileUtil.class.php

index 13a34bc15a28b90267372f8f0582fc7ec5dc8d2e..abc233dfcaa05c6b1ba57730fca596a283ced31f 100644 (file)
@@ -312,6 +312,8 @@ class BasicFileUtil {
                                self::$mode = 0777;
                        }
                        else {
+                               clearstatcache();
+                               
                                self::$mode = 0666;
                                
                                $tmpFilename = '__permissions_'.sha1(time()).'.txt';
index d070d2fa3600ac58e76c44ad6e799d821728bf76..0f8e2e9e0abc756e02093c05da4cae241885f9bc 100644 (file)
@@ -511,6 +511,8 @@ final class FileUtil {
                                        self::$mode = '0777';
                                }
                                else {
+                                       clearstatcache();
+                                       
                                        self::$mode = '0666';
                                        
                                        $tmpFilename = '__permissions_'.sha1(time()).'.txt';