note 84598 added to function.ziparchive-addemptydir
| From: | benjamin dot seiller at antwerpes dot de | Date: | Mon, 21 Jul 2008 11:37:20 +0000 |
| Subject: | note 84598 added to function.ziparchive-addemptydir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-142416@lists.php.net to get a copy of this message | ||
There is kind of a bug in the method
ZipArchive::addFile
which affects the class ZipFolder below.
It is related to the numer of max filehandles of the OS.
As workaround add a file-counter to the class and close + reopen the archive if a certain number of
files (directories count as files!) is reached.
For more details see here:
http://de.php.net/manual/en/function.ziparchive-addfile.php
or go directly here
http://bugs.php.net/bug.php?id=40494
or here
http://pecl.php.net/bugs/bug.php?id=9443
----
Server IP: 217.160.72.57
Probable Submitter: 195.82.64.222
----
Manual Page -- http://www.php.net/manual/en/function.ziparchive-addemptydir.php
Edit -- https://master.php.net/note/edit/84598
Del: integrated -- https://master.php.net/note/delete/84598/integrated
Del: useless -- https://master.php.net/note/delete/84598/useless
Del: bad code -- https://master.php.net/note/delete/84598/bad+code
Del: spam -- https://master.php.net/note/delete/84598/spam
Del: non-english -- https://master.php.net/note/delete/84598/non-english
Del: in docs -- https://master.php.net/note/delete/84598/in+docs
Del: other reasons-- https://master.php.net/note/delete/84598
Reject -- https://master.php.net/note/reject/84598
Search -- https://master.php.net/manage/user-notes.php