note 88912 rejected from function.ziparchive-addfromstring by danbrown
| From: | danbrown@php.net | Date: | Fri, 13 Feb 2009 01:03:01 +0000 |
| Subject: | note 88912 rejected from function.ziparchive-addfromstring by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150601@lists.php.net to get a copy of this message | ||
Note Submitter: geompse at gmail dot com
----
There is a tiny bug that often happen with small zip file (<2ko) : you might not be able to user
them in winzip/winrar/others ("unexpected end of zip encoutered").
The workaround I found is to append some garbage data like this :
$zip->addFromString('zzzz',str_repeat('.....',1000));
I couldn't found any data about this on the web.