Subversion Repositories oidplus

Rev

Rev 867 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
791 daniel-mar 1
 
2
Notes about the required PHP Version
3
====================================
4
 
5
OIDplus supports PHP 7.x and 8.x.
6
 
867 daniel-mar 7
Reasons why we currently require at least PHP 7.0:
791 daniel-mar 8
- Return values (e.g. "function foo(): array") (added 2020-04-06 at the database classes)
9
  Note: By removing these return values (e.g. removing ": array"), you *might* be
10
  able to run OIDplus with PHP lower than version 7.0 (not tested)
11
 
12
Currently we do NOT require 7.1, because some (old-)stable distros are still using PHP 7.0
13
(e.g. Debian 9 which has LTS support till May 2022).
874 daniel-mar 14
 
15
Therefore, we commented out following features which would require PHP >=7.1:
791 daniel-mar 16
- Nullable return values (e.g. "function foo(): ?array")
17
- void return value (e.g. "function foo(): void")
18
- private/protected/public consts
19
- In composer we cannot use the latest version of polyfill-mbstring,
20
  because this would require PHP 7.1
21
  Therefore in composer.json we write:
22
		"symfony/polyfill-mbstring": "<=1.19",
874 daniel-mar 23
  the same thing with phpseclib which also now requires PHP 7.1:
24
		"phpseclib/phpseclib": "<=3.0.14"
25
  Once PHP 7.1 is OK, we can go with the latest versions again.
26
- In dev/vendor_update.sh we patch composer packages pulled from GitHub
27
  to achieve PHP 7.0 compat
791 daniel-mar 28
 
874 daniel-mar 29
 
30
Note: How to check the effective PHP version in composer?
31
	composer show --tree