mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
reverted stuff
This commit is contained in:
@@ -25,9 +25,7 @@ function smarty_core_write_file($params, &$smarty)
|
||||
|
||||
// write to tmp file, then rename it to avoid
|
||||
// file locking race condition
|
||||
# $_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('');
|
||||
$_tmp_file = tempnam($_dirname , '_tmp');
|
||||
# $_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('', true);
|
||||
$_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('');
|
||||
|
||||
if (!($fd = @fopen($_tmp_file, 'w'))) {
|
||||
$smarty->trigger_error("problem writing temporary file '$_tmp_file'");
|
||||
|
||||
Reference in New Issue
Block a user