note 88912 added to function.ziparchive-addfromstring

From: Date: Thu, 12 Feb 2009 23:37:52 +0000
Subject: note 88912 added to function.ziparchive-addfromstring
Groups: php.notes 
Request: Send a blank email to php-notes+get-150600@lists.php.net to get a copy of this message
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. ---- Server IP: 89.31.146.176 Probable Submitter: 82.230.254.25 ---- Manual Page -- http://www.php.net/manual/en/function.ziparchive-addfromstring.php Edit -- https://master.php.net/note/edit/88912 Del: integrated -- https://master.php.net/note/delete/88912/integrated Del: useless -- https://master.php.net/note/delete/88912/useless Del: bad code -- https://master.php.net/note/delete/88912/bad+code Del: spam -- https://master.php.net/note/delete/88912/spam Del: non-english -- https://master.php.net/note/delete/88912/non-english Del: in docs -- https://master.php.net/note/delete/88912/in+docs Del: other reasons-- https://master.php.net/note/delete/88912 Reject -- https://master.php.net/note/reject/88912 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150600) next »