tags:

views:

250

answers:

2

Is it possible to change the compression level and/or method used by the ZipArchive class?

+2  A: 

This is currently not possible, according to the open bug report feature request on php.net.

soulmerge
+1  A: 

As stated in previous post, you can't do it with Zip. If specifying a compression level is more important than the archiving method, then PHP zlib allows it:

string gzcompress  ( string $data  [, int $level = -1  ] )

$level - The level of compression. Can be given as 0 for no compression up to 9 for maximum compression.

http://php.net/manual/en/book.zlib.php

Indrek