Tests: fixed skipping tests with disabled OPcache.

This commit is contained in:
Andrei Zeliankou
2021-12-01 11:25:34 +00:00
parent c58601c11f
commit cebef9691b

View File

@@ -11,7 +11,7 @@ $opcache = -1;
if (function_exists('opcache_get_status')) {
$status = opcache_get_status();
$opcache = $status['opcache_enabled'];
$opcache = $status['opcache_enabled'] ? '1' : '0';
}
header('X-OPcache: ' . $opcache);