mirror of
https://github.com/Findus23/matomo-DiagnosticsExtended.git
synced 2024-09-19 16:03:46 +02:00
0.1.5: fix opcache_get_status() warning
This commit is contained in:
parent
ac489883f2
commit
addeff712a
3 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 0.1.5
|
||||||
|
|
||||||
|
fix a warning when `opcache_get_status()` is not allowed
|
||||||
|
|
||||||
### 0.1.4
|
### 0.1.4
|
||||||
|
|
||||||
fix the repository URL
|
fix the repository URL
|
||||||
|
|
|
@ -48,7 +48,7 @@ class OpcacheCheck implements Diagnostic
|
||||||
));
|
));
|
||||||
return [$result];
|
return [$result];
|
||||||
} else {
|
} else {
|
||||||
$status = opcache_get_status();
|
$status = @opcache_get_status();
|
||||||
$memoryUsage = $status["memory_usage"];
|
$memoryUsage = $status["memory_usage"];
|
||||||
$interned = $status["interned_strings_usage"];
|
$interned = $status["interned_strings_usage"];
|
||||||
$statistics = $status["opcache_statistics"];
|
$statistics = $status["opcache_statistics"];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "DiagnosticsExtended",
|
"name": "DiagnosticsExtended",
|
||||||
"description": "Additional checks for the System Check",
|
"description": "Additional checks for the System Check",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"theme": false,
|
"theme": false,
|
||||||
"require": {
|
"require": {
|
||||||
"matomo": ">=4.2.0,<5.0.0-b1"
|
"matomo": ">=4.2.0,<5.0.0-b1"
|
||||||
|
|
Loading…
Reference in a new issue