Support PHP 8.3, no longer support PHP 8.1

This commit is contained in:
Bernd Bestel 2023-12-16 15:08:59 +01:00
parent 97ecbd25b6
commit ee01f41979
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
4 changed files with 10 additions and 9 deletions

View File

@ -47,8 +47,8 @@ See the website for more installation guides and troubleshooting help. → [h
### Platform support ### Platform support
- PHP 8.1 or 8.2 (with SQLite 3.34.0+) - PHP 8.2 or 8.3 (with SQLite 3.34.0+)
- Required PHP extensions: `fileinfo`, `pdo_sqlite`, `gd`, `ctype`, `json`, `intl`, `zlib`, `mbstring` - Required PHP extensions: `fileinfo`, `pdo_sqlite`, `gd`, `ctype`, `intl`, `zlib`, `mbstring`
- _Recommendation: Benchmark tests showed that e.g. unit conversion handling is up to 5 times faster when using a more recent (3.39.4+) SQLite version._ - _Recommendation: Benchmark tests showed that e.g. unit conversion handling is up to 5 times faster when using a more recent (3.39.4+) SQLite version._
- Recent Firefox, Chrome or Edge - Recent Firefox, Chrome or Edge

View File

@ -1,9 +1,9 @@
> ⚠️ xxxBREAKING CHANGESxxx > 💡 PHP 8.3 is from now on (additionally to PHP 8.2) supported.
>
> ⚠️ PHP 8.1 is no longer supported.
> ❗ xxxImportant upgrade informationXXX > ❗ xxxImportant upgrade informationXXX
> 💡 xxxMinor upgrade informationXXX
### New feature: xxxx ### New feature: xxxx
- xxx - xxx

View File

@ -1,6 +1,6 @@
{ {
"require": { "require": {
"php": ">=8.1", "php": ">=8.2",
"slim/slim": "^4.0", "slim/slim": "^4.0",
"slim/psr7": "^1.0", "slim/psr7": "^1.0",
"slim/http": "^1.0", "slim/http": "^1.0",

View File

@ -4,12 +4,13 @@ class ERequirementNotMet extends Exception
{ {
} }
const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype', 'json', 'intl', 'zlib', 'mbstring', const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype', 'intl', 'zlib', 'mbstring',
// These are core extensions, so normally can't be missing, but seems to be the case, however, on FreeBSD // These are core extensions, so normally can't be missing, but seems to be the case, however, on FreeBSD
'filter', 'iconv', 'tokenizer' 'filter', 'iconv', 'tokenizer', 'json'
]; ];
const REQUIRED_PHP_VERSION = '8.1.0'; const REQUIRED_PHP_VERSION = '8.2.0';
const REQUIRED_SQLITE_VERSION = '3.34.0'; const REQUIRED_SQLITE_VERSION = '3.34.0';
class PrerequisiteChecker class PrerequisiteChecker