Skip to content

Commit fada987

Browse files
committed
fixes stat cache from #89
1 parent 0173fb4 commit fada987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S3.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public static function inputFile($file, $md5sum = true)
561561
self::__triggerError('S3::inputFile(): Unable to open input file: '.$file, __FILE__, __LINE__);
562562
return false;
563563
}
564-
clearstatcache(false, $file);
564+
clearstatcache(false, $file);
565565
return array('file' => $file, 'size' => filesize($file), 'md5sum' => $md5sum !== false ?
566566
(is_string($md5sum) ? $md5sum : base64_encode(md5_file($file, true))) : '');
567567
}
@@ -636,7 +636,7 @@ public static function putObject($input, $bucket, $uri, $acl = self::ACL_PRIVATE
636636
$rest->size = $input['size'];
637637
else {
638638
if (isset($input['file'])) {
639-
clearstatcache(false, $input['file']);
639+
clearstatcache(false, $input['file']);
640640
$rest->size = filesize($input['file']);
641641
}
642642
elseif (isset($input['data']))

0 commit comments

Comments
 (0)