summaryrefslogtreecommitdiffhomepage
path: root/test/php
diff options
context:
space:
mode:
Diffstat (limited to 'test/php')
-rw-r--r--test/php/cwd/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/php/cwd/index.php b/test/php/cwd/index.php
index 24ae3a21..de3797e4 100644
--- a/test/php/cwd/index.php
+++ b/test/php/cwd/index.php
@@ -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);