1
0
Fork 0
mirror of https://github.com/Findus23/matomo-DiagnosticsExtended.git synced 2024-09-19 16:03:46 +02:00

0.1.6: skip check if posix_getuid() is not available

fixes #1
This commit is contained in:
Lukas Winkler 2021-05-17 17:00:16 +02:00
parent addeff712a
commit 670b0bf62d
Signed by: lukas
GPG key ID: 54DE4D798D244853
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## Changelog
### 0.1.6
skip user check if `posix_getuid()` doesn't exist
### 0.1.5
fix a warning when `opcache_get_status()` is not allowed

View file

@ -36,7 +36,7 @@ class PhpUserCheck implements Diagnostic
*/
public function execute()
{
if (SettingsServer::isWindows()) {
if (SettingsServer::isWindows()|| !function_exists("posix_getuid")) {
return [];
}
if (posix_getuid() === 0) {

View file

@ -1,7 +1,7 @@
{
"name": "DiagnosticsExtended",
"description": "Additional checks for the System Check",
"version": "0.1.5",
"version": "0.1.6",
"theme": false,
"require": {
"matomo": ">=4.2.0,<5.0.0-b1"