note 95383 added to function.ziparchive-addemptydir
| From: | wvoelcker at osu1 dot php dot net | Date: | Wed, 30 Dec 2009 11:33:35 +0000 |
| Subject: | note 95383 added to function.ziparchive-addemptydir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164460@lists.php.net to get a copy of this message | ||
to elaborate on what pagetronic said, if you try to use addEmptyDir on some (?all?) versions of
Debian etch, you will get the error "call to undefined method ZipArchive::addEmptyDir".
I struggled with this for ages before realising that I could use addFromString to add a file to the
archive, inside a new directory, without first creating the directory with addEmptyDir.
From pagetronic's post, it looks like this also works for addFile.
----
Server IP: 69.147.83.197
Probable Submitter: 88.107.30.203
----
Manual Page -- http://www.php.net/manual/en/function.ziparchive-addemptydir.php
Edit -- https://master.php.net/note/edit/95383
Del: integrated -- https://master.php.net/note/delete/95383/integrated
Del: useless -- https://master.php.net/note/delete/95383/useless
Del: bad code -- https://master.php.net/note/delete/95383/bad+code
Del: spam -- https://master.php.net/note/delete/95383/spam
Del: non-english -- https://master.php.net/note/delete/95383/non-english
Del: in docs -- https://master.php.net/note/delete/95383/in+docs
Del: other reasons-- https://master.php.net/note/delete/95383
Reject -- https://master.php.net/note/reject/95383
Search -- https://master.php.net/manage/user-notes.php