From d2046d5fac4226ac412d955ae4e7f558b92211ad Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 9 Jul 2022 13:17:59 -0700 Subject: [PATCH] PECL Redis 2.2.8 was the last version to support PHP 5.x --- plugins/templates/before-script-redis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/templates/before-script-redis.yml b/plugins/templates/before-script-redis.yml index 90f2d1f..9da2e6f 100644 --- a/plugins/templates/before-script-redis.yml +++ b/plugins/templates/before-script-redis.yml @@ -16,5 +16,10 @@ before_script: - composer global require yoast/phpunit-polyfills # PECL Redis module - - pecl install redis + - | + if [[ $(php -v) =~ "PHP 5.6" ]]; then + pecl install redis-2.2.8 + elif + pecl install redis + fi - echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini -- GitLab