- Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379

This commit is contained in:
Uwe Tews
2017-07-31 18:58:41 +02:00
parent bcfea52cbf
commit 105651a469
3 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== 3.1.32 - dev === ===== 3.1.32 - dev ===
31.7.2017
- Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379
30.7.2017 30.7.2017
- rewrite mkdir() bugfix to retry automatically see https://github.com/smarty-php/smarty/pull/377 - rewrite mkdir() bugfix to retry automatically see https://github.com/smarty-php/smarty/pull/377
https://github.com/smarty-php/smarty/pull/379 https://github.com/smarty-php/smarty/pull/379

View File

@@ -108,7 +108,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/** /**
* smarty version * smarty version
*/ */
const SMARTY_VERSION = '3.1.32-dev-15'; const SMARTY_VERSION = '3.1.32-dev-16';
/** /**
* define variable scopes * define variable scopes

View File

@@ -47,6 +47,7 @@ class Smarty_Internal_Runtime_WriteFile
if (@mkdir($_dirpath, $_dir_perms, true)) { if (@mkdir($_dirpath, $_dir_perms, true)) {
break; break;
} }
clearstatcache();
if (++$i === 3) { if (++$i === 3) {
error_reporting($_error_reporting); error_reporting($_error_reporting);
throw new SmartyException("unable to create directory {$_dirpath}"); throw new SmartyException("unable to create directory {$_dirpath}");