|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78026 zip extension does not compile with PHP 7.4
Submitted: 2019-05-17 10:27 UTC Modified: 2020-01-28 09:56 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: Assigned: remi (profile)
Status: Closed Package: zip (PECL)
PHP Version: master-Git-2019-05-17 (Git) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2019-05-17 10:27 UTC]
"pecl install zip" fails on PHP 7.4 (bd1bd38a3579a6507551a2cfa34713cdc92cf081) with:

 cc -I. -I/tmp/pear/temp/zip -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-derickh2AQh4/zip-1.15.4/include -I/tmp/pear/temp/pear-build-derickh2AQh4/zip-1.15.4/main -I/tmp/pear/temp/zip -I/usr/local/php/7.4dev/include/php -I/usr/local/php/7.4dev/include/php/main -I/usr/local/php/7.4dev/include/php/TSRM -I/usr/local/php/7.4dev/include/php/Zend -I/usr/local/php/7.4dev/include/php/ext -I/usr/local/php/7.4dev/include/php/ext/date/lib -I/tmp/pear/temp/zip/php73 -DHAVE_CONFIG_H -g -O0 -c /tmp/pear/temp/zip/php73/zip_stream.c  -fPIC -DPIC -o php73/.libs/zip_stream.o
 cc -I. -I/tmp/pear/temp/zip -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-derickh2AQh4/zip-1.15.4/include -I/tmp/pear/temp/pear-build-derickh2AQh4/zip-1.15.4/main -I/tmp/pear/temp/zip -I/usr/local/php/7.4dev/include/php -I/usr/local/php/7.4dev/include/php/main -I/usr/local/php/7.4dev/include/php/TSRM -I/usr/local/php/7.4dev/include/php/Zend -I/usr/local/php/7.4dev/include/php/ext -I/usr/local/php/7.4dev/include/php/ext/date/lib -I/tmp/pear/temp/zip/php73 -DHAVE_CONFIG_H -g -O0 -c /tmp/pear/temp/zip/php73/php_zip.c  -fPIC -DPIC -o php73/.libs/php_zip.o
/tmp/pear/temp/zip/php73/php_zip.c: In function ‘php_zip_pcre’:
/tmp/pear/temp/zip/php73/php_zip.c:660:8: error: too many arguments to function ‘pcre_get_compiled_regex’
   re = pcre_get_compiled_regex(regexp, &capture_count, &preg_options);
In file included from /tmp/pear/temp/zip/php73/php_zip.c:29:
/usr/local/php/7.4dev/include/php/ext/pcre/php_pcre.h:31:20: note: declared here
 PHPAPI pcre2_code* pcre_get_compiled_regex(zend_string *regex, uint32_t *capture_count);
make: *** [Makefile:193: php73/php_zip.lo] Error 1
ERROR: `make' failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-18 11:01 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: remi
 [2019-05-18 11:01 UTC]
Caused by commit 27e9c05[1].  The respective fix to php_zip.c
would have to be ported to PECL/zip.

[1] <;a=commit;h=27e9c05e8108fe6c184178997176896fb91a3451>
 [2020-01-28 09:56 UTC]
-Status: Verified +Status: Closed
 [2020-01-28 09:56 UTC]
Fixed in 1.15.5 some time ago...
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 28 07:01:28 2024 UTC