aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-12-01 17:27:59 +0000
committerChris Smith <toonarmy@phpbb.com>2008-12-01 17:27:59 +0000
commit30021ca5bce07eecaaee807baf5170482d2efa13 (patch)
tree561d97a9d399220c4eb40c68aeac69a2879fc176 /phpBB/includes/functions.php
parent5474fcc4ea5c0cdf3ed89c1238ec8a7a700405b4 (diff)
downloadforums-30021ca5bce07eecaaee807baf5170482d2efa13.tar
forums-30021ca5bce07eecaaee807baf5170482d2efa13.tar.gz
forums-30021ca5bce07eecaaee807baf5170482d2efa13.tar.bz2
forums-30021ca5bce07eecaaee807baf5170482d2efa13.tar.xz
forums-30021ca5bce07eecaaee807baf5170482d2efa13.zip
stupid PHP manual :@ the two parameters to clearstatcache() are 5.3 only. Fix r9144
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9146 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index edb6d8ea5e..f92b4f91ab 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -511,7 +511,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
// Will most likely not work
if (@chown($filename, $common_php_owner));
{
- clearstatcache(false, $filename);
+ clearstatcache();
$file_uid = fileowner($filename);
}
}
@@ -521,7 +521,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
{
if (@chgrp($filename, $common_php_group));
{
- clearstatcache(false, $filename);
+ clearstatcache();
$file_gid = filegroup($filename);
}
}
@@ -570,7 +570,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
$result = @chmod($filename, ($owner << 6) + (0 << 3) + (0 << 0));
- clearstatcache(false, $filename);
+ clearstatcache();
if (!is_null($php) || (is_readable($filename) && is_writable($filename)))
{
@@ -581,7 +581,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
case 'group':
$result = @chmod($filename, ($owner << 6) + ($perms << 3) + (0 << 0));
- clearstatcache(false, $filename);
+ clearstatcache();
if (!is_null($php) || ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename))))
{
@@ -591,7 +591,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
case 'other':
$result = @chmod($filename, ($owner << 6) + ($perms << 3) + ($perms << 0));
- clearstatcache(false, $filename);
+ clearstatcache();
if (!is_null($php) || ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename))))
{