@@ -1292,7 +1292,7 @@ function run_all_tests($test_files, $env, $redir_tested = null)
1292
1292
/* Automatically skip opcache tests in --file-cache mode,
1293
1293
* because opcache generally doesn't expect those to run under file cache */
1294
1294
$ test_files = array_filter ($ test_files , function ($ path ) {
1295
- return false !== strpos ('ext/opcache ' , $ path );
1295
+ return false === strpos ($ path , 'ext/opcache ' );
1296
1296
});
1297
1297
}
1298
1298
@@ -2128,16 +2128,6 @@ function run_test($php, $file, $env)
2128
2128
2129
2129
$ orig_ini_settings = settings2params ($ ini_settings );
2130
2130
2131
- // Any special ini settings
2132
- // these may overwrite the test defaults...
2133
- if (array_key_exists ('INI ' , $ section_text )) {
2134
- $ section_text ['INI ' ] = str_replace ('{PWD} ' , dirname ($ file ), $ section_text ['INI ' ]);
2135
- $ section_text ['INI ' ] = str_replace ('{TMP} ' , sys_get_temp_dir (), $ section_text ['INI ' ]);
2136
- $ replacement = IS_WINDOWS ? '" ' . PHP_BINARY . ' -r \"while ($in = fgets(STDIN)) echo $in;\" > $1" ' : 'tee $1 >/dev/null ' ;
2137
- $ section_text ['INI ' ] = preg_replace ('/{MAIL:(\S+)}/ ' , $ replacement , $ section_text ['INI ' ]);
2138
- settings2array (preg_split ("/[ \n\r]+/ " , $ section_text ['INI ' ]), $ ini_settings );
2139
- }
2140
-
2141
2131
if ($ file_cache !== null ) {
2142
2132
$ ini_settings ['opcache.file_cache ' ] = '/tmp ' ;
2143
2133
// Make sure warnings still show up on the second run.
@@ -2151,6 +2141,16 @@ function run_test($php, $file, $env)
2151
2141
}
2152
2142
}
2153
2143
2144
+ // Any special ini settings
2145
+ // these may overwrite the test defaults...
2146
+ if (array_key_exists ('INI ' , $ section_text )) {
2147
+ $ section_text ['INI ' ] = str_replace ('{PWD} ' , dirname ($ file ), $ section_text ['INI ' ]);
2148
+ $ section_text ['INI ' ] = str_replace ('{TMP} ' , sys_get_temp_dir (), $ section_text ['INI ' ]);
2149
+ $ replacement = IS_WINDOWS ? '" ' . PHP_BINARY . ' -r \"while ($in = fgets(STDIN)) echo $in;\" > $1" ' : 'tee $1 >/dev/null ' ;
2150
+ $ section_text ['INI ' ] = preg_replace ('/{MAIL:(\S+)}/ ' , $ replacement , $ section_text ['INI ' ]);
2151
+ settings2array (preg_split ("/[ \n\r]+/ " , $ section_text ['INI ' ]), $ ini_settings );
2152
+ }
2153
+
2154
2154
$ ini_settings = settings2params ($ ini_settings );
2155
2155
2156
2156
$ env ['TEST_PHP_EXTRA_ARGS ' ] = $ pass_options . ' ' . $ ini_settings ;
0 commit comments