Bug #79678 [Opn->Ver]: Build fails due to undeclared ZIP_RDONLY
| From: | requinix@php.net | Date: | Sat, 06 Jun 2020 10:37:30 +0000 |
| Subject: | Bug #79678 [Opn->Ver]: Build fails due to undeclared ZIP_RDONLY | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227336@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79678&edit=1
ID: 79678
Updated by: requinix@php.net
Reported by: rk at srsbiz dot pl
Summary: Build fails due to undeclared ZIP_RDONLY
-Status: Open
+Status: Verified
Type: Bug
-Package: Compile Failure
+Package: Zip Related
Operating System: linux
PHP Version: master-Git-2020-06-06 (Git)
Block user comment: N
Private report: N
New Comment:
The relevant code was originally wrapped in an #if to check for libzip 1.6, but it was removed...
https://github.com/php/php-src/commit/8aab43c85d67fc1c1935f91bc64db800c4ef4754
https://github.com/php/php-src/commit/a4d12f46d1233da4f3518d918c925362b1d9465a
Looks like ZIP_RDONLY requires libzip 1.0+
https://github.com/nih-at/libzip/commit/ea8ba499615b7e8911fb6eb57894467723e6723e#diff-de4dcec0a5ec279220ffda60f39f86ff
Previous Comments:
------------------------------------------------------------------------
[2020-06-06 10:07:25] rk at srsbiz dot pl
Description:
------------
Trying to compile from source (revision aa9b0cc) with libzip 0.11.2 (minimal required)
/usr/src/php-master/ext/zip/php_zip.c: In function âzim_ZipArchive_openâ:
/usr/src/php-master/ext/zip/php_zip.c:1459:31: error: âZIP_RDONLYâ undeclared (first use
in this function)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79678&edit=1