Topic: Not able to upgrade to PHP 7

I am trying to update from php 5.6 to PHP 7

yum update php\*
Loaded plugins: fastestmirror, priorities
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: mirror.pac-12.org
* epel: dl.fedoraproject.org
* extras: dallas.tx.mirror.xygenhosting.com
* remi-php56: rpms.remirepo.net
* remi-php70: rpms.remirepo.net
* remi-safe: rpms.remirepo.net
* updates: repos.redrockhost.com
remi-php70                                               | 2.9 kB     00:00
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-cli.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-common.x86_64 0:5.6.16-1.el6.remi will be updated
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-igbinary-1.2.1-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-ssh2-0.12-3.el6.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-jsonc-1.3.9-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-igbinary-1.2.1-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-ssh2-0.12-3.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-jsonc-1.3.9-1.el6.remi.5.6.x86_64
---> Package php-common.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-devel.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-devel.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-fpm.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-fpm.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-gd.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-gd.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-mbstring.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-mbstring.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-mysqlnd.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-mysqlnd.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-opcache.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-opcache.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-pdo.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-pdo.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-pear.noarch 1:1.9.5-14.el6.remi will be updated
---> Package php-pear.noarch 1:1.10.0-0.7.dev3.el6.remi will be an update
---> Package php-pecl-memcached.x86_64 0:2.2.0-3.el6.remi.5.6 will be updated
---> Package php-pecl-memcached.x86_64 0:2.2.0-11.20150628git3c79a97.el6.remi.7.0 will be an update
--> Processing Dependency: libfastlz.so.0()(64bit) for package: php-pecl-memcached-2.2.0-11.20150628git3c79a97.el6.remi.7.0.x86_64
---> Package php-pecl-msgpack.x86_64 0:0.5.7-1.el6.remi.5.6 will be updated
---> Package php-pecl-msgpack.x86_64 0:2.0.0-1.el6.remi.7.0 will be an update
---> Package php-pecl-zip.x86_64 0:1.13.1-1.el6.remi.5.6 will be updated
---> Package php-pecl-zip.x86_64 0:1.13.1-3.el6.remi.7.0 will be an update
---> Package php-process.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-process.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-tidy.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-tidy.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-xml.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-xml.x86_64 0:7.0.0-2.el6.remi will be an update
---> Package php-xmlrpc.x86_64 0:5.6.16-1.el6.remi will be updated
---> Package php-xmlrpc.x86_64 0:7.0.0-2.el6.remi will be an update
--> Running transaction check
---> Package fastlz.x86_64 0:0.1.0-0.1.20070619svnrev12.el6 will be installed
---> Package php-common.x86_64 0:5.6.16-1.el6.remi will be updated
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-igbinary-1.2.1-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-ssh2-0.12-3.el6.remi.5.6.x86_64
--> Processing Dependency: php(api) = 20131106-64 for package: php-pecl-jsonc-1.3.9-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-igbinary-1.2.1-1.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-ssh2-0.12-3.el6.remi.5.6.x86_64
--> Processing Dependency: php(zend-abi) = 20131226-64 for package: php-pecl-jsonc-1.3.9-1.el6.remi.5.6.x86_64
--> Finished Dependency Resolution
Error: Package: php-pecl-ssh2-0.12-3.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(api) = 20131106-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(api) = 20131106-64
           Updated By: php-common-7.0.0-2.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(api) = 20090626
           Available: php-common-5.6.15-1.el6.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
           Available: php-common-7.0.0-1.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
Error: Package: php-pecl-jsonc-1.3.9-1.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(api) = 20131106-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(api) = 20131106-64
           Updated By: php-common-7.0.0-2.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(api) = 20090626
           Available: php-common-5.6.15-1.el6.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
           Available: php-common-7.0.0-1.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
Error: Package: php-pecl-ssh2-0.12-3.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(zend-abi) = 20131226-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(zend-abi) = 20131226-64
           Updated By: php-common-7.0.0-2.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
           Available: php-common-5.6.15-1.el6.remi.x86_64 (remi-php56)
               php(zend-abi) = 20131226-64
           Available: php-common-7.0.0-1.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
Error: Package: php-pecl-igbinary-1.2.1-1.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(api) = 20131106-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(api) = 20131106-64
           Updated By: php-common-7.0.0-2.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(api) = 20090626
           Available: php-common-5.6.15-1.el6.remi.x86_64 (remi-php56)
               php(api) = 20131106-64
           Available: php-common-7.0.0-1.el6.remi.x86_64 (remi-php70)
               php(api) = 20151012-64
Error: Package: php-pecl-jsonc-1.3.9-1.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(zend-abi) = 20131226-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(zend-abi) = 20131226-64
           Updated By: php-common-7.0.0-2.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
           Available: php-common-5.6.15-1.el6.remi.x86_64 (remi-php56)
               php(zend-abi) = 20131226-64
           Available: php-common-7.0.0-1.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
Error: Package: php-pecl-igbinary-1.2.1-1.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php(zend-abi) = 20131226-64
           Removing: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
               php(zend-abi) = 20131226-64
           Updated By: php-common-7.0.0-2.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
           Available: php-common-5.6.15-1.el6.remi.x86_64 (remi-php56)
               php(zend-abi) = 20131226-64
           Available: php-common-7.0.0-1.el6.remi.x86_64 (remi-php70)
               php(zend-abi) = 20151012-64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


I have another quick question :

Is Opcache huge pages disabled by default in this since the 7.0 version has got a segfault bug.

Re: Not able to upgrade to PHP 7

Some extensions are not yet compatible (e.g. ssh2 and igbinary), see PECL-extensions-RPM-status

So if you really need them, you cannot update.
If you can remove them, you can upgrade.

> Is Opcache huge pages disabled by default in this since the 7.0 version has got a segfault bug.
Yes (EL-6 only)

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: Not able to upgrade to PHP 7

BTW, I notice a small issue with "jsonc" (EL-6 only) which should be replaced by php-json. A New set of packages (7.0.0-3) fix this.

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: Not able to upgrade to PHP 7

@Remi any update

I now get this error for jsonc

Error: Package: php-pecl-jsonc-devel-1.3.9-1.el6.remi.5.6.x86_64 (@remi-php56)
           Requires: php-pecl-jsonc(x86-64) = 1.3.9-1.el6.remi.5.6
           Removing: php-pecl-jsonc-1.3.9-1.el6.remi.5.6.x86_64 (@remi-php56)
               php-pecl-jsonc(x86-64) = 1.3.9-1.el6.remi.5.6
           Obsoleted By: php-json-7.0.0-3.el6.remi.x86_64 (remi-php70)
               Not found
           Available: php-pecl-jsonc-1.3.8-1.el6.remi.5.6.x86_64 (remi-php56)
               php-pecl-jsonc(x86-64) = 1.3.8-1.el6.remi.5.6


Is there something i could do about igbinary ?

Re: Not able to upgrade to PHP 7

=> yum remove php-pecl-jsonc-devel

I will manage this in next build (7.0.1)

For igbinary, ask upstream wink

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: Not able to upgrade to PHP 7

Do you think 7.0.1 will be released this month or next year

https://github.com/php/php-src/blob/PHP-7.0/NEWS

Thanks for the great work remi

Re: Not able to upgrade to PHP 7

> Do you think 7.0.1 will be released this month or next year

Don't know yet, 7.0.1RC1 is plan for Dec 10th, 7.0.1 for Dec 24th which seems a bad date...

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

8 (edited by gsanseverino 2015-12-14 10:50:45)

Re: Not able to upgrade to PHP 7

I was trying to install the package "php70-php-pecl-memcached" on EC2 Amazon Linux instance and I solved the problem of the broken dependency "libfastlz.so.0" by downloading and installing manually the package fastlz with these commands:

wget "http://rpms.famillecollet.com/enterpris … x86_64.rpm"
rpm -i fastlz-0.1.0-0.1.20070619svnrev12.el6.remi.x86_64.rpm

Then I installed memcached package with this command:
yum install php70-php-pecl-memcached --disablerepo=* --enablerepo=remi
(to avoid amzn-main repository conflicts)

Re: Not able to upgrade to PHP 7

@gsanseverino, nice if it works for you, btw not related to this thread.

Closing this one.

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