mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
- Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== 3.1.32 - dev ===
|
||||
31.7.2017
|
||||
- Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379
|
||||
|
||||
30.7.2017
|
||||
- rewrite mkdir() bugfix to retry automatically see https://github.com/smarty-php/smarty/pull/377
|
||||
https://github.com/smarty-php/smarty/pull/379
|
||||
|
@@ -108,7 +108,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
||||
/**
|
||||
* smarty version
|
||||
*/
|
||||
const SMARTY_VERSION = '3.1.32-dev-15';
|
||||
const SMARTY_VERSION = '3.1.32-dev-16';
|
||||
|
||||
/**
|
||||
* define variable scopes
|
||||
|
@@ -47,6 +47,7 @@ class Smarty_Internal_Runtime_WriteFile
|
||||
if (@mkdir($_dirpath, $_dir_perms, true)) {
|
||||
break;
|
||||
}
|
||||
clearstatcache();
|
||||
if (++$i === 3) {
|
||||
error_reporting($_error_reporting);
|
||||
throw new SmartyException("unable to create directory {$_dirpath}");
|
||||
|
Reference in New Issue
Block a user