Silence file ops.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-16 23:40:14 +00:00
parent d0aa219739
commit 36722b2528
1 changed files with 5 additions and 5 deletions

View File

@ -199,13 +199,13 @@ class WP_Object_Cache {
foreach (split('/', $group_dir) as $subdir) {
$make_dir .= "$subdir/";
if (!file_exists($this->cache_dir.$make_dir)) {
if (!mkdir($this->cache_dir.$make_dir))
if (! @ mkdir($this->cache_dir.$make_dir))
break;
@ chmod($this->cache_dir.$make_dir, $perms);
}
if (!file_exists($this->cache_dir.$make_dir."index.php")) {
touch($this->cache_dir.$make_dir."index.php");
@ touch($this->cache_dir.$make_dir."index.php");
}
}
@ -278,7 +278,7 @@ class WP_Object_Cache {
}
if (!file_exists($this->cache_dir."index.php")) {
touch($this->cache_dir."index.php");
@ touch($this->cache_dir."index.php");
}
// Acquire a write lock. Semaphore preferred. Fallback to flock.
@ -313,8 +313,8 @@ class WP_Object_Cache {
fputs($fd, $serial);
fclose($fd);
if (!@ rename($temp_file, $cache_file)) {
if (copy($temp_file, $cache_file)) {
unlink($temp_file);
if (@ copy($temp_file, $cache_file)) {
@ unlink($temp_file);
}
}
}