-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phpword loadTemplate() finction behave differently on php thread safe and php non thread safe #1149
Comments
I get a syntax error with that. Can you give also the configuration information?
|
@FBnil im currently running PHP 7.1 with IIS as web server..
|
By the way, turn out that this issue related to permission when PhpOffice try to create a temp file inside windows default temporary directory (C:/windows/Temp ).. My suggestion, by default Settings:getTempDir() should return webroot path instead of windows/Server Temp Directory.
|
How to replicate error:
Use phpword loadTemplate function..
$object = new/phpoffice/phpword/phpword()->loadTemplate('template.docx');
Error:
ZipArchive::getFromName():invalid or uninitialized zip object
The text was updated successfully, but these errors were encountered: