Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607226 - dev-php/pecl-redis: how to install for PHP 5.5 and PHP 7.1 simultaneously
Summary: dev-php/pecl-redis: how to install for PHP 5.5 and PHP 7.1 simultaneously
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 23:05 UTC by Ján Regeš
Modified: 2017-01-26 00:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ján Regeš 2017-01-25 23:05:42 UTC
Hi,

i need to have 2 PHP versions installed simultaneously.

PHP 5.5 (slot used for Apache) and PHP 7.1 (slot used for PHP-FPM). This is OK and works properly.

Problem is, that in both PHP versions, i need to have pecl-redis extension.

But.. all versions of dev-php/pecl-redis have slot "0".

There is separately pecl-redis 2.x which targeting to PHP 5.5, but does not support 7.1. Pecl-redis 3.x targeting PHP 7.1, but does not targeting PHP 5.5.

Is there solution for this situation, how to install pecl-redis in both PHP versions?

Thank you for your support.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-01-26 00:51:13 UTC
PHP 5.5 is end-of-life and has been removed from portage.

Very soon, pecl-redis will also lose the 2.2.7-r1 version once we stable a 3.x with support for php 5.6, 7.0 and 7.1.

You really should upgrade to php 5.6 as the differences are trivial and there are unfixed security holes in the last version of 5.5.
Comment 2 Michael Orlitzky gentoo-dev 2017-01-26 00:56:39 UTC
I'd like to help but I don't think we can fix this in the tree. We (Gentoo) dropped support for php-5.5 because it has been discontinued upstream and no longer receives security updates. In particular, many of the vulnerabilities that were fixed in the latest php-5.6.30 release are probably still present in php-5.5.x.

When you install pecl-redis for some version of PHP, it tries to pull in the associated version of dev-lang/php as a dependency. For example, if you set PHP_TARGETS=php7-1 and emerge pecl-redis, it will install php:7.1 for you. The problem we have is that, while php-5.5.x might *work*, we can't add it as an option for pecl-redis, because then users would wind up trying to install dev-lang/php:5.5 (which is no longer available in Gentoo).

You might be able to solve your problem by creating your own overlay and copying the latest pecl-redis (and possibly igbinary) ebuilds there. If you add "php5-5" to USE_PHP at the top of the ebuild and you happen to already have php-5.5.x installed, it should let you install pecl-redis for it.