From 884dc05a4fb787bdb6e8f98eb9f7ce5d58c06337 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 2 Jun 2013 18:55:50 +0200 Subject: [PATCH] Fixed conversion error of file modes --- wcfsetup/install/files/lib/util/FileUtil.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 6ca07a8868..084990f3b6 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -500,10 +500,10 @@ final class FileUtil { if (defined('NO_IMPORTS')) { // do not use PHP_OS here, as this represents the system it was built on != running on if (strpos(php_uname(), 'Windows') !== false) { - self::$mode = 0777; + self::$mode = '0777'; } else { - self::$mode = 0666; + self::$mode = '0666'; $tmpFilename = '__permissions_'.sha1(time()).'.txt'; @touch($tmpFilename); @@ -516,7 +516,7 @@ final class FileUtil { $fileOwner = fileowner($tmpFilename); if ($scriptOwner === $fileOwner) { - self::$mode = 0644; + self::$mode = '0644'; } @unlink($tmpFilename); -- 2.20.1