ID:               44201
 Updated by:       [EMAIL PROTECTED]
 Reported By:      liamwheldon at gmail dot com
-Status:           Assigned
+Status:           Bogus
 Bug Type:         Zip Related
 Operating System: 2003 Server & XP
 PHP Version:      5.2.5
 Assigned To:      pajoye
 New Comment:

Not a PHP bug.




Previous Comments:
------------------------------------------------------------------------

[2008-02-21 23:21:43] [EMAIL PROTECTED]

Sounds like a bug in the windows zip tool.As you said it works with
pkzip, winzip, winrar, infozip, magiczip, etc.

I would suggest to either encode (see the shell escaping/encoding
function in php) the column or don't use it. I can't force an encoding,
it will break OS specific encoding.

I'll check again the specs to see how to act with these characters.

By the way, you don't need the unlink(..), you can force the creation
of a new archive with the open method.

------------------------------------------------------------------------

[2008-02-21 10:33:50] liamwheldon at gmail dot com

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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44201&edit=1

Reply via email to