Skip to content

Commit cea893f

Browse files
authored
Merge pull request #4493 from Bregi/fix-c-file-cache-get-value
PHP 8.1 compatibility fix for CFileCache
2 parents 8b9619b + 5a09222 commit cea893f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Version 1.1.27 under development
55
--------------------------------
66

7-
- No changes yet
7+
- Bug: PHP 8.1 compatibility: Fix CFileCache call of file_get_contents (Bregi)
88

99
Version 1.1.26 September 30, 2022
1010
--------------------------------

framework/caching/CFileCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected function getValue($key)
130130
{
131131
$cacheFile=$this->getCacheFile($key);
132132
if(($time=$this->filemtime($cacheFile))>time())
133-
return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : null);
133+
return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : 0);
134134
elseif($time>0)
135135
@unlink($cacheFile);
136136
return false;

0 commit comments

Comments
 (0)