#45218 [Fbk->Csd]: PHAR archive built from directory limited by max open file handles
| From: | stevseea@php.net | Date: | Fri, 13 Jun 2008 12:24:58 +0000 |
| Subject: | #45218 [Fbk->Csd]: PHAR archive built from directory limited by max open file handles | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125739@lists.php.net to get a copy of this message | ||
ID: 45218
User updated by: stevseea@php.net
Reported By: stevseea@php.net
-Status: Feedback
+Status: Closed
Bug Type: *General Issues
Operating System: *
PHP Version: 5.3CVS-2008-06-09 (snap)
Assigned To: cellog
New Comment:
Great, that's now fixed. Thanks for the prompt response.
I'd like to use PHAR to create an uncompressed data archive of around
15,000 files (total size about 60MB), but I'm finding the time to create
the archive can be measured in hours, whereas creating a zip of the same
files takes less than 30 seconds. Though I appreciate that I may be
using PHAR for a purpose that it was not designed for, are there any
plans to improve performance for large amounts of files in the future?
Previous Comments:
------------------------------------------------------------------------
[2008-06-10 19:20:54] cellog@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.3-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.3-win32-installer-latest.msi
------------------------------------------------------------------------
[2008-06-09 16:35:53] stevseea@php.net
Description:
------------
When building a PHAR archive using the methods buildFromDirectory() or
buildFromIterator(), a temporary file is opened for each file to be
added to the archive. These temporary files remain open until the last
stages of the archive creation (to prevent the files from being
deleted), meaning that the number of files that can be added to the
archive is limited by the maximum number of file handles that can be
open at any one time (often 2048).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45218&edit=1