Re: 'ZIP_FL_OVERWRITE' undeclared
| From: | Remi Collet | Date: | Sun, 29 Dec 2013 05:55:47 +0000 |
| Subject: | Re: 'ZIP_FL_OVERWRITE' undeclared | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70901@lists.php.net to get a copy of this message | ||
Le 29/12/2013 04:11, Yasuo Ohgaki a écrit :
> Hi all,
>
> My system does not have zip_file_add, ZIP_FL_OVERWRITE in /usr/include/zip.h
> libzip 0.11.2 has these, but zip_file_add() addition is not in NEWS file
> somehow.
PHP 5.5 ext/zip (1.11) extension doesn't support use of system libzip
(possible with some patch and libzip 0.10 only )
PHP 5.6 ext/zip (1.12) extension now support use of system libzip, using
the --with-libzip option, but this requires libzip >= 0.11.
> It seems conditional compilation is required for zip extension.
There are a lot of changes in libzip 0.11 which allow this, without
using any internal libzip API. So, libzip 0.10 can't be supported in any
way.
This is a reason why Fedora 20 official PHP packages have switch from
ext/zip to pecl/zip (it is easier to update the extension than php tree).
I'm working on pecl/zip 1.12.4 with libzip 0.11.2 (with 2 new methods)
and will merge it soon in 5.6 tree.
I will try to add some version check in the config.m4 to provide a more
explicit error message.
Remi.