Req #41243 [Com]: How to use ZIPARCHIVE::CM_STORE
| From: | mpeters at domblogger dot net | Date: | Mon, 23 Jan 2012 10:57:54 +0000 |
| Subject: | Req #41243 [Com]: How to use ZIPARCHIVE::CM_STORE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166728@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=41243&edit=1
ID: 41243
Comment by: mpeters at domblogger dot net
Reported by: joel dot alexandre at gmail dot com
Summary: How to use ZIPARCHIVE::CM_STORE
Status: Assigned
Type: Feature/Change Request
Package: Zip Related
PHP Version: 5.x
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
It is imperative that this bug be addressed and fixed.
The epub specification requires that the first file in the zip archive be named
mimetype and be uncompressed.
Until this bug is fixed, it is thus impossible to create a valid epub file in
pure php w/o executing system commands (forbidden in many environments).
*maybe* it could be worked around by having a skeleton zip archive with the
mimetype file in it uncompressed, but really, we need to be able to create a
fresh zip archive, add that file, with no compression.
Previous Comments:
------------------------------------------------------------------------
[2010-07-02 14:20:03] php at atis dot id dot lv
This would be quite nice for me too. No compression could be useful for creating large archives of
multiple files on the fly.
------------------------------------------------------------------------
[2010-06-04 17:44:31] shockmaker at hotmail dot com
I'm looking to create a zip file with a compression level of 0 on some files.
So this feature is essential for me.
------------------------------------------------------------------------
[2010-03-16 04:53:19] jotunbane at gmail dot com
3 years and still no solution to this?
Dude you are holding back an entire industry here (exaggeration, I know).
Can somebody come up with a workaround for this??
------------------------------------------------------------------------
[2009-12-13 16:49:59] made at up dot address
Please implement the ability to store files uncompressed in a zip archive.
Without this, it is not possible to create epub documents using php, as the standards require that a
particular file is always added to the archive uncompressed.
http://www.idpf.org/2007/ops/OPS_2.0_final_spec.html
------------------------------------------------------------------------
[2009-05-26 11:31:03] andreidf at yahoo dot com
"Future versions will let you specify the compression mode and method."
When? :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=41243
--
Edit this bug report at https://bugs.php.net/bug.php?id=41243&edit=1