Skip to content

Commit

Permalink
Merge pull request #135 from driehle/feat/php84
Browse files Browse the repository at this point in the history
Allow PHP 8.4 in laminas-cache-storage-adapter-redis 2.x
  • Loading branch information
gsteel authored Jan 23, 2025
2 parents 3b234a8 + f684cdb commit ead8443
Show file tree
Hide file tree
Showing 5 changed files with 637 additions and 637 deletions.
31 changes: 29 additions & 2 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,37 @@
{
"name": "Run tests on ext-redis 5.3.7",
"job": {
"php": "*",
"php": "8.1",
"dependencies": "locked",
"command": "REDIS_VERSION=5.3.7 vendor/bin/phpunit"
}
},
{
"name": "Run tests on ext-redis 5.3.7",
"job": {
"php": "8.2",
"dependencies": "locked",
"command": "REDIS_VERSION=5.3.7 vendor/bin/phpunit"
}
},
{
"name": "Run tests on ext-redis 5.3.7",
"job": {
"php": "8.3",
"dependencies": "locked",
"command": "REDIS_VERSION=5.3.7 vendor/bin/phpunit"
}
},
{
"name": "Run tests on ext-redis 6.1.0",
"job": {
"php": "*",
"dependencies": "locked",
"command": "REDIS_VERSION=6.1.0 vendor/bin/phpunit"
}
}
]
],
"ignore_php_platform_requirements": {
"8.4": true
}
}
7 changes: 7 additions & 0 deletions .laminas-ci/pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@ COMMAND=$(echo "${JOB}" | jq -r '.command // ""')
PHP=$(echo "${JOB}" | jq -r '.php // ""')
REDIS_VERSION=${BASH_REMATCH[1]}

echo "SETUP: Installing ext-redis $REDIS_VERSION with PHP $PHP..."
pecl install -f --configureoptions 'enable-redis-igbinary="yes" enable-redis-lzf="yes"' igbinary redis-${REDIS_VERSION}

if [ $? -ne 0 ]; then
echo "ERROR: Installation of ext-redis $REDIS_VERSION with PHP $PHP failed."
exit 1
fi

echo "extension=redis.so" > /etc/php/${PHP}/mods-available/redis.ini
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"license": "BSD-3-Clause",
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-redis": "^5.3.2 || ^6.0",
"laminas/laminas-cache": "^3.10"
},
Expand Down
Loading

0 comments on commit ead8443

Please sign in to comment.