php.net |  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
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: derick@php.net Assigned: remi (profile)
Status: Closed Package: zip (PECL)
PHP Version: master-Git-2019-05-17 (Git) OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: derick@php.net
New email:
PHP Version: OS:

 

 [2019-05-17 10:27 UTC] derick@php.net
Description:
------------
"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



Patches

Pull Requests

History

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

[1] <http://git.php.net/?p=php-src.git;a=commit;h=27e9c05e8108fe6c184178997176896fb91a3451>
 [2020-01-28 09:56 UTC] remi@php.net
-Status: Verified +Status: Closed
 [2020-01-28 09:56 UTC] remi@php.net
Fixed in 1.15.5 some time ago...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 13:01:26 2025 UTC