Zip on WIndows XP
I am using the Zip functionality to create a zip file from files on my hard disk broadly as follows:
$zipObject = new ZipArchive();
$zipname = 'D:/colinf/CommonServices/test.zip';
if ($zipObject->open($zipname, ZIPARCHIVE::OVERWRITE)!==TRUE) {
exit(\"cannot open <$zipname>\n\");
$zip->addFile($dir.$file, $file);
$zipObject->close();
The zip file is created and looks to have the correct files in it but when I try to extract any file I get the error "CRC failed in approvals process . The file is corrupt". Unfortunately this make the Zip functionality unusable.
It looks very similar to the php bug reported here for Windows XP. http://pecl.php.net/bugs/bug.php?id=9278
Does anyone have the Zip functionality working on Win XP?
Thanks,
Colin
PHP 5.2.1
We had a chance to compile SmartPill with PHP version 5.2.1 and I'm happy to say this issue is fixed. We won't be releasing the new version for a little while but when we do, it will be available as a free upgrade.
RE: Zip on Windows XP
I saw this too with the release version of SmartPill - the ZIP archive I was using was created under OS X (10.4.8). If I created the archive with WinXP instead, I did not see this problem.
Perhaps a workaround for folks until we get the latest PHP in SmartPill.

Zip on WIndows XP
Hello Colin,
I get the same error here. It works fine on OSX. I read the bug report and it looks like this is fixed in PHP version 5.2.1. We'll compile a new version of SmartPill with 5.2.1 and see if that helps. It may take a week or so, I'll keep you posted. Thanks for posting this.
Regards,
Micah