Skip to content

Commit

Permalink
Drop support php 7, add php 8.2 support
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Demonchaux <demonchaux.stephane@gmail.com>
  • Loading branch information
fezfez committed Nov 8, 2022
1 parent 8bcfec3 commit ffb3e52
Show file tree
Hide file tree
Showing 9 changed files with 152 additions and 459 deletions.
14 changes: 14 additions & 0 deletions .laminas-ci/install-sqlsrv-extension-via-pecl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

PHP_VERSION="$1"

if ! [[ "${PHP_VERSION}" =~ 8\.2 ]]; then
echo "sqlsrv is only installed from pecl for PHP 8.2, ${PHP_VERSION} detected."
exit 0;
fi

set +e

pecl install sqlsrv
echo "extension=sqlsrv.so" > /etc/php/${PHP_VERSION}/mods-available/sqlsrv.ini
phpenmod -v ${PHP} -s cli sqlsrv
2 changes: 2 additions & 0 deletions .laminas-ci/pre-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ cp .laminas-ci/phpunit.xml phpunit.xml
# Install lsof (used in integration tests)
apt update -qq
apt install -yqq lsof

${WORKING_DIRECTORY}/.laminas-ci/install-sqlsrv-extension-via-pecl.sh "${PHP_VERSION}" || exit 1
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "7.4.99"
"php": "8.0.99"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand All @@ -31,15 +31,15 @@
}
},
"require": {
"php": "^7.4 || ~8.0.0 || ~8.1.0",
"php": "~8.0.0 || ~8.1.0|| ~8.2.0",
"laminas/laminas-stdlib": "^3.7.1"
},
"require-dev": {
"laminas/laminas-coding-standard": "^2.4.0",
"laminas/laminas-eventmanager": "^3.4.0",
"laminas/laminas-hydrator": "^4.3",
"laminas/laminas-servicemanager": "^3.7.0",
"phpunit/phpunit": "^9.5.19"
"laminas/laminas-eventmanager": "^3.6.0",
"laminas/laminas-hydrator": "^4.7",
"laminas/laminas-servicemanager": "^3.19.0",
"phpunit/phpunit": "^9.5.25"
},
"suggest": {
"laminas/laminas-eventmanager": "Laminas\\EventManager component",
Expand Down
Loading

0 comments on commit ffb3e52

Please sign in to comment.