|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-21 23:21 UTC] pajoye@php.net
[2008-11-02 13:30 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 01:00:02 2025 UTC |
Description: ------------ I recently came across an issue when creating zip file son the fly where windows XP built in zip archive viewer show'd no files within the archive yet Winrar show'd the files fine. I have found the issue to be in the time stamp as there is a ':' between hour and minute, once removed this works fine in XP zip archive viewer. Reproduce code: --------------- unlink('E:/liam/bksbvalidation/bksb_results.zip'); $zip = new ZipArchive(); $filename = 'E:/liam/bksbvalidation/bksb_results.zip'; if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) { exit("cannot open <$filename>\n"); } $zip->addFile('E:/Liam/keyskillbuilder/trials/bksb Initial Assessment/Results/HTML/5bf57268_liam wheldon_1.html', 'Initial assessment result 20th Feb 2008 9:37.html'); $zip->close(); Expected result: ---------------- I would expect to receive and open a readable zip archive Actual result: -------------- The zip archive wont open in windows XP zip archive viewer yet all 3rd party zip readers work, yet show the file as not being HTML.