diff --git a/README.md b/README.md index d5a8a72..c3de35a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ OPcache Dashboard ================= +This fork of OPcache Dashboard is fully PHP 8.0.x compatible. + Set up properly and monitor your Zend OPcache with this dashboard that will help you checking memory, hits and status, configuring for optimal performance (warning you when cache full, validation, etc.) and reseting one or all scripts with one click. Installation diff --git a/opcache.php b/opcache.php index a3109a6..1c101a0 100644 --- a/opcache.php +++ b/opcache.php @@ -36,7 +36,7 @@ function size_for_humans($bytes) function getOffsetWhereStringsAreEqual($a, $b) { $i = 0; - while (strlen($a) && strlen($b) && strlen($a) > $i && $a{$i} === $b{$i}) { + while (strlen($a) && strlen($b) && strlen($a) > $i && $a[$i] === $b[$i]) { $i++; } @@ -245,7 +245,7 @@ function getStringFromPropertyAndValue($property, $value) Path $a ['hits']; }); $offset = null; $previousKey = null; @@ -272,7 +272,7 @@ function getStringFromPropertyAndValue($property, $value) - +