diff options
| author | Chris Smith <toonarmy@phpbb.com> | 2008-12-01 17:04:58 +0000 |
|---|---|---|
| committer | Chris Smith <toonarmy@phpbb.com> | 2008-12-01 17:04:58 +0000 |
| commit | b68a10249110a3248404956b7b532bbf976f7ae6 (patch) | |
| tree | 134bff403779d42f3eb043e74134db7ca8a70a25 /phpBB/includes/functions.php | |
| parent | be17000b92ba57f95e876aa9ccf550d33a996d52 (diff) | |
| download | forums-b68a10249110a3248404956b7b532bbf976f7ae6.tar forums-b68a10249110a3248404956b7b532bbf976f7ae6.tar.gz forums-b68a10249110a3248404956b7b532bbf976f7ae6.tar.bz2 forums-b68a10249110a3248404956b7b532bbf976f7ae6.tar.xz forums-b68a10249110a3248404956b7b532bbf976f7ae6.zip | |
merge in r9144
git-svn-id: file:///svn/phpbb/trunk@9145 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 7023fae9da..ed0673d071 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -914,6 +914,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) // Will most likely not work if (@chown($filename, $common_php_owner)); { + clearstatcache(false, $filename); $file_uid = fileowner($filename); } } @@ -923,6 +924,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) { if (@chgrp($filename, $common_php_group)); { + clearstatcache(false, $filename); $file_gid = filegroup($filename); } } @@ -971,6 +973,8 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) $result = @chmod($filename, ($owner << 6) + (0 << 3) + (0 << 0)); + clearstatcache(false, $filename); + if (!is_null($php) || (is_readable($filename) && is_writable($filename))) { break; @@ -980,6 +984,8 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) case 'group': $result = @chmod($filename, ($owner << 6) + ($perms << 3) + (0 << 0)); + clearstatcache(false, $filename); + if (!is_null($php) || ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename)))) { break; @@ -988,6 +994,8 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) case 'other': $result = @chmod($filename, ($owner << 6) + ($perms << 3) + ($perms << 0)); + clearstatcache(false, $filename); + if (!is_null($php) || ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename)))) { break; |
