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: 2019-05-18 11:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: derick@php.net Assigned: remi (profile)
Status: Verified Package: zip (PECL)
PHP Version: master-Git-2019-05-17 (Git) OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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>
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 19:01:27 2019 UTC