Silence fopen warnings and check return.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-19 22:52:57 +00:00
parent 6628bfcf35
commit eb7c563406
1 changed files with 3 additions and 1 deletions

View File

@ -282,7 +282,9 @@ class WP_Object_Cache {
}
// Acquire a write lock.
$mutex = fopen($this->cache_dir.$this->flock_filename, 'w');
$mutex = @fopen($this->cache_dir.$this->flock_filename, 'w');
if ( false == $mutex)
return;
flock($mutex, LOCK_EX);
// Loop over dirty objects and save them.