This commit is contained in:
Roman Syroeshko 2015-07-02 21:39:54 +03:00
parent 7a2125c7e9
commit 988eaca87e
1 changed files with 7 additions and 1 deletions

View File

@ -339,7 +339,13 @@ class TemplateProcessor
unlink($fileName);
}
rename($tempFileName, $fileName);
/*
* Note: we do not use ``rename`` funcion here, because it looses file ownership data on Windows, and the file may not open.
*
* @see https://github.com/PHPOffice/PHPWord/issues/532
*/
copy($tempFileName, $fileName);
unlink($tempFileName);
}
/**