Topic: zipver should be 1.13.2 in php-7.0.5-1 spec file

I just downloaded php 7.0.5-1 source rpm, set '%global with_zip 1' and rebuild:

Error: Upstream ZIP version is now 1.3.2, expecting 1.3.0.
Update the 1.3.0 macro and rebuild.

in the php70.spec:
%global zipver      1.13.0

in the upstream ext/zip/php_zip.h
#define PHP_ZIP_VERSION  1.13.2

Re: zipver should be 1.13.2 in php-7.0.5-1 spec file

Not a bug, as I prefer to build "without" zip extension (provided separately in php-pecl-zip package)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: zipver should be 1.13.2 in php-7.0.5-1 spec file

BTW, why do you want to rebuild and not simply use the available RPM ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: zipver should be 1.13.2 in php-7.0.5-1 spec file

Remi wrote:

BTW, why do you want to rebuild and not simply use the available RPM ?

Thank you for providing latest php 7 package (plus source spec)! I am an Ops running several hundreds of php 7 nodes.

In my case, I have to change libgd/zip setting due to historic code... I have been pushing the Devs to revise the code, but it takes time sad I will keep push to move to your available RPMs.

Re: zipver should be 1.13.2 in php-7.0.5-1 spec file

Another reason is, compile with gcc 4.8 and above, php7 will open "Global Register for opline and execute_data" feature, which lead to about 5% performance improvement.
My servers are running CentOS 6 with gcc 4.4.7, so I simply rebuild php 7.0 with scl devtoolset-3 (gcc 4.9.2).

Re: zipver should be 1.13.2 in php-7.0.5-1 spec file

interesting (the SCL usage)...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi