From a55e2a0cf86b889dcfac51277439ee00f98f9bd2 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 6 Sep 2022 04:30:49 +0200 Subject: [PATCH] requires PHP 8.0 --- .github/workflows/tests.yml | 2 +- appveyor.yml | 20 ++++++++++---------- composer.json | 2 +- readme.md | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 03e380f3..8a410fa6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php: ['8.0', '8.1', '8.2'] fail-fast: false diff --git a/appveyor.yml b/appveyor.yml index a4330dcf..30ed2775 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,6 @@ build: off cache: - - c:\php7 -> appveyor.yml + - c:\php -> appveyor.yml - '%LOCALAPPDATA%\Composer\files -> appveyor.yml' clone_folder: c:\projects\dibi @@ -11,21 +11,21 @@ services: - mysql init: - - SET PATH=c:\php7;%PATH% + - SET PATH=c:\php;%PATH% - SET ANSICON=121x90 (121x90) install: - # Install PHP 7.2 - - IF EXIST c:\php7 (SET PHP=0) ELSE (SET PHP=1) - - IF %PHP%==1 mkdir c:\php7 - - IF %PHP%==1 cd c:\php7 - - IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-7.2.18-Win32-VC15-x64.zip --output php.zip + # Install PHP 8.0 + - IF EXIST c:\php (SET PHP=0) ELSE (SET PHP=1) + - IF %PHP%==1 mkdir c:\php + - IF %PHP%==1 cd c:\php + - IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-8.0.1-Win32-vs16-x64.zip --output php.zip - IF %PHP%==1 7z x php.zip >nul - IF %PHP%==1 echo extension_dir=ext >> php.ini - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini - - IF %PHP%==1 curl https://github.com/microsoft/msphpsql/releases/download/v5.8.0/Windows-7.2.zip -L --output sqlsrv.zip + - IF %PHP%==1 curl https://github.com/microsoft/msphpsql/releases/download/v5.9.0/Windows-8.0.zip -L --output sqlsrv.zip - IF %PHP%==1 7z x sqlsrv.zip >nul - - IF %PHP%==1 copy Windows-7.2\x64\php_sqlsrv_72_ts.dll ext\php_sqlsrv_ts.dll + - IF %PHP%==1 copy Windows-8.0\x64\php_sqlsrv_80_ts.dll ext\php_sqlsrv_ts.dll - IF %PHP%==1 del /Q *.zip # Install Microsoft Access Database Engine x64 @@ -41,7 +41,7 @@ install: - copy tests\databases.appveyor.ini tests\databases.ini test_script: - - vendor\bin\tester tests -s -p c:\php7\php -c tests\php-win.ini + - vendor\bin\tester tests -s -p c:\php\php -c tests\php-win.ini on_failure: # Print *.actual content diff --git a/composer.json b/composer.json index 681a683a..68a4c0dd 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": ">=7.2" + "php": ">=8.0 <8.3" }, "require-dev": { "tracy/tracy": "~2.2", diff --git a/readme.md b/readme.md index d9bf256a..2924cad4 100644 --- a/readme.md +++ b/readme.md @@ -34,7 +34,7 @@ Install Dibi via Composer: composer require dibi/dibi ``` -The Dibi 4.2 requires PHP version 7.2 and supports PHP up to 8.2. +The Dibi 5.0 requires PHP version 8.0 and supports PHP up to 8.2. Usage