From 4b3efcea0dfcc842fb1a0f62b610652323844d35 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Sat, 11 Dec 2021 00:16:59 +0000 Subject: Tests: added more OPcache tests. --- test/php/opcache/index.php | 2 +- test/php/opcache/preload/chdir.php | 7 +++++++ test/php/opcache/preload/fastcgi_finish_request.php | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/php/opcache/preload/chdir.php create mode 100644 test/php/opcache/preload/fastcgi_finish_request.php (limited to 'test/php/opcache') diff --git a/test/php/opcache/index.php b/test/php/opcache/index.php index de4002bb..cf67c4c2 100644 --- a/test/php/opcache/index.php +++ b/test/php/opcache/index.php @@ -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'); } ?> diff --git a/test/php/opcache/preload/chdir.php b/test/php/opcache/preload/chdir.php new file mode 100644 index 00000000..ad75e6ad --- /dev/null +++ b/test/php/opcache/preload/chdir.php @@ -0,0 +1,7 @@ + diff --git a/test/php/opcache/preload/fastcgi_finish_request.php b/test/php/opcache/preload/fastcgi_finish_request.php new file mode 100644 index 00000000..31630cfa --- /dev/null +++ b/test/php/opcache/preload/fastcgi_finish_request.php @@ -0,0 +1,5 @@ + -- cgit