An issue making ZIPs downloaded from the v3.0 demo corrupted has been independently reported by at least four users, including myself:
https://sourceforge.net/forum/message.php?msg_id=6597679
https://sourceforge.net/forum/message.php?msg_id=4517343
https://sourceforge.net/forum/message.php?msg_id=6539711
https://sourceforge.net/forum/message.php?msg_id=5651509
Steps to reproduce this bug (in my case):
- select any test form from the demo server
- download using IE7 or FF3 on Windows XP -> the zip expands without a glitch
- download using Safari or FF3 on Mac OS 10.5.6 -> the zip has a slightly different size and cannot be expanded ("Unable to unarchive form.zip into Desktop (Error 1 - Operation not permitted.))").
Possible causes: a little bit of research suggests that Zlib compression being enabled in PHP.INI is a very common cause of corrupted archives: see http://tinyurl.com/dmvfhw and http://bugs.php.net/bug.php?id=19436
I could not inspect the source of the version running the demo because it's not available, but you may want to set the following in getZip.php
ini_set("zlib.output_compression", "Off");
this should make the script work regardless of the server configuration.
Thanks Dario. I had the same problem with my Mac downloads from the phpFormGenerator site. Using my Windows laptop to download & unzip/zip the files worked for me also. I hope we get a root cause defined so we can fix this annoying problem.
BillBo