Closed (duplicate)
Project:
Cache Router
Version:
6.x-1.0-beta8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Apr 2009 at 23:01 UTC
Updated:
8 May 2009 at 00:34 UTC
LINE: 111
foreach ($files as $file) {
if ($fp = fopen($file, 'w')) {
// only delete the cache file once we obtain an exclusive lock to prevent
// deleting a cache file that is currently being read.
if (flock($fp, LOCK_EX)) {
unlink($file);
}
}
we should replace $file with $file->filename, because file_scan_directory() returns object
Comments
Comment #1
slantview commentedMarking as duplicate of #352953: fileCache::delete() passes in wrong argument type for fopen() and unlink()