Tests: fixed opcache detection.
opcache_get_status() returns array, so square brackets should be used to access "opcache_enabled" value.
This commit is contained in:
@@ -10,7 +10,8 @@ if (isset($_GET['chdir']) && $_GET['chdir'] != "") {
|
||||
$opcache = -1;
|
||||
|
||||
if (function_exists('opcache_get_status')) {
|
||||
$opcache = opcache_get_status()->opcache_enabled;
|
||||
$status = opcache_get_status();
|
||||
$opcache = $status['opcache_enabled'];
|
||||
}
|
||||
|
||||
header('X-OPcache: ' . $opcache);
|
||||
|
||||
Reference in New Issue
Block a user