Tests: added more OPcache tests.

This commit is contained in:
Andrei Zeliankou
2021-12-11 00:16:59 +00:00
parent ad843df965
commit 4b3efcea0d
4 changed files with 65 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ if (function_exists('opcache_is_script_cached')) {
opcache_compile_file(__DIR__ . '/test.php');
}
} else {
header('X-Cached: -1');
header('X-OPcache: -1');
}
?>

View File

@@ -0,0 +1,7 @@
<?php
chdir(realpath(__DIR__ . '/..'));
opcache_compile_file('index.php');
?>

View File

@@ -0,0 +1,5 @@
<?php
fastcgi_finish_request();
?>