From 8a77135ae6d5ff194857d3e7c31ef81aa85f3f54 Mon Sep 17 00:00:00 2001 From: ilyachase Date: Mon, 28 Aug 2017 23:23:04 +0500 Subject: [PATCH] backward incompatibility fix according to php 7.1 file_get_contents changes (negative offset) --- common/lib/vendor/yiisoft/yii/framework/caching/CFileCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/vendor/yiisoft/yii/framework/caching/CFileCache.php b/common/lib/vendor/yiisoft/yii/framework/caching/CFileCache.php index f8ed789..5475fc6 100644 --- a/common/lib/vendor/yiisoft/yii/framework/caching/CFileCache.php +++ b/common/lib/vendor/yiisoft/yii/framework/caching/CFileCache.php @@ -113,7 +113,7 @@ protected function getValue($key) { $cacheFile=$this->getCacheFile($key); if(($time=$this->filemtime($cacheFile))>time()) - return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : -1); + return @file_get_contents($cacheFile,false,null,$this->embedExpiry ? 10 : 0); elseif($time>0) @unlink($cacheFile); return false;