mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #13126 from cakephp/issue-13085
Fix shutdown warnings in PHP7.2+
This commit is contained in:
commit
c8a9c61f27
1 changed files with 5 additions and 1 deletions
|
@ -352,7 +352,11 @@ class FileEngine extends CacheEngine {
|
||||||
if (!$createKey && !$path->isFile()) {
|
if (!$createKey && !$path->isFile()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (empty($this->_File) || $this->_File->getBaseName() !== $key) {
|
if (
|
||||||
|
empty($this->_File) ||
|
||||||
|
$this->_File->getBaseName() !== $key ||
|
||||||
|
$this->_File->valid() === false
|
||||||
|
) {
|
||||||
$exists = file_exists($path->getPathname());
|
$exists = file_exists($path->getPathname());
|
||||||
try {
|
try {
|
||||||
$this->_File = $path->openFile('c+');
|
$this->_File = $path->openFile('c+');
|
||||||
|
|
Loading…
Reference in a new issue