ubuntu - PHP's native ZipArchive class fails when .zip is >= 4GB. How to fix? -
The original zip line (PHP) of PHP 5.3 + creates corrupted result files (.zip), but only when the result. Zip
~ 4 GB is larger (I think that 3,6 GB. Server Ubuntu 10.10 64bit, 4GB RAM , Latest PHP 5.3). Error (when it is unzipping .zip, which is also the software you use):
file # 1: bad zipfile offset (lseek):
According to many posts on the web, this is the maximum limit (undocumented) only for this class / zip function. My question is: how to fix it, quick and dirty? Are there some possible php.ini or server settings? Or 4 GB + on the original Ubuntu system Are there some other ways to create a zip file? I do not have root access and new packages can not be installed.
There are some similar questions & Java on this way:
This class has no limit, for example You can switch to tar.gz.
Comments
Post a Comment