diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-06-26 04:23:47 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-06-26 04:23:47 +0100 |
commit | 9bd6baefaee3a3e9b8dfe6427404512c9a66c969 (patch) | |
tree | 25a9184dee715b30612c5029f2994b9070acf58c | |
parent | 6e55f03dcd006ae97fa994ef09ebe35a255ea606 (diff) | |
download | unit-9bd6baefaee3a3e9b8dfe6427404512c9a66c969.tar.gz unit-9bd6baefaee3a3e9b8dfe6427404512c9a66c969.tar.bz2 |
Tests: fixed opcache detection.
opcache_get_status() returns array, so square brackets
should be used to access "opcache_enabled" value.
Diffstat (limited to '')
-rw-r--r-- | test/php/cwd/index.php | 3 |
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); |