summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-05-06 23:46:49 +0300
committerDmitry Stogov <dmitry@zend.com>2015-05-06 23:46:49 +0300
commit3abde432314787f697533c88e7afd64946676306 (patch)
treeebcba1326f8844a0f90c41ffdd28bf5c9092644c /run-tests.php
parent500b884f17d76629cb066da55145a83659b8acfb (diff)
downloadphp-git-3abde432314787f697533c88e7afd64946676306.tar.gz
Added experimental (disabled by default) file based opcode cache.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/run-tests.php b/run-tests.php
index 72781e9559..897500a58b 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -243,9 +243,11 @@ $ini_overwrites = array(
'opcache.file_update_protection=0',
);
+$no_file_cache = '-d opcache.file_cache= -d opcache.file_cache_only=0';
+
function write_information($show_html)
{
- global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header;
+ global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header, $no_file_cache;
// Get info from php
$info_file = __DIR__ . '/run-test-info.php';
@@ -261,11 +263,11 @@ More .INIs : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n"
$info_params = array();
settings2array($ini_overwrites, $info_params);
settings2params($info_params);
- $php_info = `$php $pass_options $info_params "$info_file"`;
+ $php_info = `$php $pass_options $info_params $no_file_cache "$info_file"`;
define('TESTED_PHP_VERSION', `$php -n -r "echo PHP_VERSION;"`);
if ($php_cgi && $php != $php_cgi) {
- $php_info_cgi = `$php_cgi $pass_options $info_params -q "$info_file"`;
+ $php_info_cgi = `$php_cgi $pass_options $info_params $no_file_cache -q "$info_file"`;
$php_info_sep = "\n---------------------------------------------------------------------";
$php_cgi_info = "$php_info_sep\nPHP : $php_cgi $php_info_cgi$php_info_sep";
} else {
@@ -276,7 +278,7 @@ More .INIs : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n"
// load list of enabled extensions
save_text($info_file, '<?php echo join(",", get_loaded_extensions()); ?>');
- $exts_to_test = explode(',',`$php $pass_options $info_params "$info_file"`);
+ $exts_to_test = explode(',',`$php $pass_options $info_params $no_file_cache "$info_file"`);
// check for extensions that need special handling and regenerate
$info_params_ex = array(
'session' => array('session.auto_start=0'),
@@ -1195,6 +1197,7 @@ function run_test($php, $file, $env)
global $valgrind_version;
global $JUNIT;
global $SHOW_ONLY_GROUPS;
+ global $no_file_cache;
$temp_filenames = null;
$org_file = $file;
@@ -1519,7 +1522,7 @@ TEST $file
junit_start_timer($shortname);
- $output = system_with_timeout("$extra $php $pass_options -q $ini_settings -d display_errors=0 \"$test_skipif\"", $env);
+ $output = system_with_timeout("$extra $php $pass_options -q $ini_settings $no_file_cache -d display_errors=0 \"$test_skipif\"", $env);
junit_finish_timer($shortname);
@@ -1835,7 +1838,7 @@ COMMAND $cmd
settings2params($clean_params);
$extra = substr(PHP_OS, 0, 3) !== "WIN" ?
"unset REQUEST_METHOD; unset QUERY_STRING; unset PATH_TRANSLATED; unset SCRIPT_FILENAME; unset REQUEST_METHOD;": "";
- system_with_timeout("$extra $php $pass_options -q $clean_params \"$test_clean\"", $env);
+ system_with_timeout("$extra $php $pass_options -q $clean_params $no_file_cache \"$test_clean\"", $env);
}
if (!$cfg['keep']['clean']) {