From addeff712a526fba5840017faf0a94308a1def4e Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Mon, 17 May 2021 13:21:55 +0200 Subject: [PATCH] 0.1.5: fix opcache_get_status() warning --- CHANGELOG.md | 4 ++++ Diagnostic/OpcacheCheck.php | 2 +- plugin.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f395de1..ace3e4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Changelog +### 0.1.5 + +fix a warning when `opcache_get_status()` is not allowed + ### 0.1.4 fix the repository URL diff --git a/Diagnostic/OpcacheCheck.php b/Diagnostic/OpcacheCheck.php index 0136071..ea06914 100644 --- a/Diagnostic/OpcacheCheck.php +++ b/Diagnostic/OpcacheCheck.php @@ -48,7 +48,7 @@ class OpcacheCheck implements Diagnostic )); return [$result]; } else { - $status = opcache_get_status(); + $status = @opcache_get_status(); $memoryUsage = $status["memory_usage"]; $interned = $status["interned_strings_usage"]; $statistics = $status["opcache_statistics"]; diff --git a/plugin.json b/plugin.json index 784fa88..d289f4b 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "name": "DiagnosticsExtended", "description": "Additional checks for the System Check", - "version": "0.1.4", + "version": "0.1.5", "theme": false, "require": { "matomo": ">=4.2.0,<5.0.0-b1"