summaryrefslogtreecommitdiffhomepage
path: root/test/php/cwd/index.php
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-12-01 11:25:34 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-12-01 11:25:34 +0000
commitcebef9691b891f8cbf611ce65eea7bc8a07874b7 (patch)
tree97c7e49280821565bddfa5136eb1bb476152b349 /test/php/cwd/index.php
parentc58601c11fd2f2c583d94f31b63c7d16319a2614 (diff)
downloadunit-cebef9691b891f8cbf611ce65eea7bc8a07874b7.tar.gz
unit-cebef9691b891f8cbf611ce65eea7bc8a07874b7.tar.bz2
Tests: fixed skipping tests with disabled OPcache.
Diffstat (limited to 'test/php/cwd/index.php')
-rw-r--r--test/php/cwd/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/php/cwd/index.php b/test/php/cwd/index.php
index de3797e4..eb2cc5b3 100644
--- a/test/php/cwd/index.php
+++ b/test/php/cwd/index.php
@@ -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);