Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70901 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19531 invoked from network); 29 Dec 2013 05:55:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Dec 2013 05:55:57 -0000 Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 212.27.42.6 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 212.27.42.6 smtp6-g21.free.fr Linux 2.6 Received: from [212.27.42.6] ([212.27.42.6:41299] helo=smtp6-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/72-31802-B69BFB25 for ; Sun, 29 Dec 2013 00:55:57 -0500 Received: from schrodingerscat.famillecollet.com (unknown [82.241.130.121]) by smtp6-g21.free.fr (Postfix) with ESMTP id 0BA728224D for ; Sun, 29 Dec 2013 06:55:48 +0100 (CET) Message-ID: <52BFB963.30500@fedoraproject.org> Date: Sun, 29 Dec 2013 06:55:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: PHP Internals References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] 'ZIP_FL_OVERWRITE' undeclared From: remi@fedoraproject.org (Remi Collet) 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.