Subversion Repositories oidplus

Rev

Rev 867 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 867 Rev 874
Line 9... Line 9...
9
  Note: By removing these return values (e.g. removing ": array"), you *might* be
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)
10
  able to run OIDplus with PHP lower than version 7.0 (not tested)
11
 
11
 
12
Currently we do NOT require 7.1, because some (old-)stable distros are still using PHP 7.0
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).
13
(e.g. Debian 9 which has LTS support till May 2022).
-
 
14
 
14
Therefore we commented out following features which would require PHP 7.1:
15
Therefore, we commented out following features which would require PHP >=7.1:
15
- Nullable return values (e.g. "function foo(): ?array")
16
- Nullable return values (e.g. "function foo(): ?array")
16
- void return value (e.g. "function foo(): void")
17
- void return value (e.g. "function foo(): void")
17
- private/protected/public consts
18
- private/protected/public consts
18
- In composer we cannot use the latest version of polyfill-mbstring,
19
- In composer we cannot use the latest version of polyfill-mbstring,
19
  because this would require PHP 7.1
20
  because this would require PHP 7.1
20
  Therefore in composer.json we write:
21
  Therefore in composer.json we write:
21
		"symfony/polyfill-mbstring": "<=1.19",
22
		"symfony/polyfill-mbstring": "<=1.19",
-
 
23
  the same thing with phpseclib which also now requires PHP 7.1:
-
 
24
		"phpseclib/phpseclib": "<=3.0.14"
22
  Once PHP 7.1 is OK, we can go with the latest version again.
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
-
 
28
 
23
 
29
 
24
  Note: How to check the effective PHP version in composer?
30
Note: How to check the effective PHP version in composer?
25
	sudo aptitude install php7.0
-
 
26
	sudo update-alternatives --set php /usr/bin/php7.0
-
 
27
	composer check-platform-reqs
31
	composer show --tree