summaryrefslogtreecommitdiffhomepage
path: root/test/php/cwd/index.php
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2020-08-13 19:28:27 +0300
committerAndrei Belov <defan@nginx.com>2020-08-13 19:28:27 +0300
commitaff76e4f90b4e948c327ce2b021dc3203c33cbcd (patch)
tree5bd6ac3aa92683777548472984c209bf26d8a971 /test/php/cwd/index.php
parent04ce9f997e0e49e57ce4b5fc4aa98134232a1974 (diff)
parent6473d4b65a99aa10d509220fb99d8c4f65631ed0 (diff)
downloadunit-aff76e4f90b4e948c327ce2b021dc3203c33cbcd.tar.gz
unit-aff76e4f90b4e948c327ce2b021dc3203c33cbcd.tar.bz2
Merged with the default branch.1.19.0-1
Diffstat (limited to 'test/php/cwd/index.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);