wp-cache
Opened 14 years ago
#1499 new defect
wp-cache-phase2.php on line 96
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Severity: | normal |
| Plugin: | wp-cache | Keywords: | |
| Cc: |
Description
The error message "[function.fopen]: failed to open stream: Is a directory in" wp-content/plugins/wp-cache/wp-cache-phase2.php on line 96
Comes from the global variable $mutex_filename not being set. I cannot figure out why it is not being set, but the work-around seems to be to set it right before the error would occur.
Do not fall into the trap set by not enclosing single statement then blocks in braces when you add a second statement to the block.
if ($use_flock) {
/* Setting $mutex_filename on the next line is a bug fix. */
$mutex_filename = 'wp_cache_mutex.lock';
$mutex = fopen($cache_path . $mutex_filename, 'w');
}
Extra line breaks added to the code above to get trac to not eliminate single line breaks.