- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility

This commit is contained in:
rodneyrehm
2011-12-29 13:30:09 +00:00
parent 05f17be99a
commit ec99ee7ee6
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
29.12.2011
- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility
28.12.2011
- bugfix Smarty's internal header code must be excluded from postfilters (issue 71)

View File

@@ -38,7 +38,7 @@ class Smarty_Internal_Write_File {
}
// write to tmp file, then move to overt file lock race condition
$_tmp_file = $_dirpath . DS . uniqid('wrt');
$_tmp_file = $_dirpath . DS . uniqid('wrt', true);
if (!file_put_contents($_tmp_file, $_contents)) {
error_reporting($_error_reporting);
throw new SmartyException("unable to write file {$_tmp_file}");