So here is my code:
open(\'test.docx\') === TRUE) { $xmlString = $zip->getFromName(\'word/document.xml\'); $x
If close() returns false, there was an error writing out the archive.
close()
Use getStatusString to get the exact error message.