Raise minimum/tested runtime requirements (references #1209)

This commit is contained in:
Bernd Bestel 2020-12-22 21:54:49 +01:00
parent 5f09d4def1
commit f1efd08bc6
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
4 changed files with 6 additions and 3 deletions

View File

@ -37,7 +37,8 @@ grocy is technically a pretty simple PHP application, so the basic notes to get
- The webserver root should point to the `public` directory
- Include `try_files $uri /index.php$is_args$query_string;` in your location block if you use nginx
- Or disable URL rewriting (see the option `DISABLE_URL_REWRITING` in `data/config.php`)
- SQLite 3.8.3 or higher is required and everything is currently only tested against PHP 7.4
- Based on user reports, the minmimum required/working runtime is PHP 7.2 with SQLite 3.9.0
- However, I don't care about supporting old stuff, currently everything is only tested against (means 100 % works with) PHP 7.4 with SQLite 3.27.2
- → Default login is user `admin` with password `admin`, please change the password immediately (user menu at the top right corner)
Alternatively clone this repository (the `release` branch always references the latest released version, or checkout the latest tagged revision) and install Composer and Yarn dependencies manually.

View File

@ -1,3 +1,5 @@
- Improved the prerequisites checker (added missing required PHP extension `ctype`) (thanks @Forceu)
- Fixed that browser camera barcode scanning did not work on the product edit page
- Fixed that the new product option "Never show on stock overview" was unintentionally set by default for new products
- Fixed a problem (database migration fail) when using SQLite >= 3.8.3 < 3.9.0
- _Just as a side note: PHP 7.2 with SQLite 3.8.3 was the currently in README mentioned minimum runtime requirement, any future release will only be tested against PHP 7.4 with SQLite 3.27.2 - supporting those ancient runtime stuff is too time consuming..._

View File

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

View File

@ -5,7 +5,7 @@ class ERequirementNotMet extends Exception
}
const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype'];
const REQUIRED_SQLITE_VERSION = '3.8.3';
const REQUIRED_SQLITE_VERSION = '3.9.0';
class PrerequisiteChecker
{