summaryrefslogtreecommitdiffhomepage
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
commit5e40c969c7c5553d9a2814fe472c71beb77e5e09 (patch)
treeca8d72cdd8d341b3f97fae797a1a2b0ba37021b2
parent380f2dc2bae72f259ed3c7dc11b4c52a3eb4c06b (diff)
downloadunit-5e40c969c7c5553d9a2814fe472c71beb77e5e09.tar.gz
unit-5e40c969c7c5553d9a2814fe472c71beb77e5e09.tar.bz2
Tests: fixed skipping tests with disabled OPcache.
-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);