Tests: added more OPcache tests.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
7
test/php/opcache/preload/chdir.php
Normal file
7
test/php/opcache/preload/chdir.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
chdir(realpath(__DIR__ . '/..'));
|
||||
|
||||
opcache_compile_file('index.php');
|
||||
|
||||
?>
|
||||
5
test/php/opcache/preload/fastcgi_finish_request.php
Normal file
5
test/php/opcache/preload/fastcgi_finish_request.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
fastcgi_finish_request();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user