mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
29.12.2011
|
||||||
|
- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility
|
||||||
|
|
||||||
28.12.2011
|
28.12.2011
|
||||||
- bugfix Smarty's internal header code must be excluded from postfilters (issue 71)
|
- bugfix Smarty's internal header code must be excluded from postfilters (issue 71)
|
||||||
|
|
||||||
|
@@ -38,7 +38,7 @@ class Smarty_Internal_Write_File {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write to tmp file, then move to overt file lock race condition
|
// 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)) {
|
if (!file_put_contents($_tmp_file, $_contents)) {
|
||||||
error_reporting($_error_reporting);
|
error_reporting($_error_reporting);
|
||||||
throw new SmartyException("unable to write file {$_tmp_file}");
|
throw new SmartyException("unable to write file {$_tmp_file}");
|
||||||
|
Reference in New Issue
Block a user